Not found error moved to db.go where it belongs.
This commit is contained in:
parent
925d48c10d
commit
d7a04516e3
@ -2,7 +2,6 @@ package captcha
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"errors"
|
|
||||||
"image"
|
"image"
|
||||||
"math/big"
|
"math/big"
|
||||||
"time"
|
"time"
|
||||||
@ -12,8 +11,6 @@ const (
|
|||||||
maxAnswer = 999999
|
maxAnswer = 999999
|
||||||
)
|
)
|
||||||
|
|
||||||
var errorNotFound = errors.New("captcha not found")
|
|
||||||
|
|
||||||
type Answer string
|
type Answer string
|
||||||
|
|
||||||
// Captcha interface that should be implemented by captcha.
|
// Captcha interface that should be implemented by captcha.
|
||||||
|
@ -3,12 +3,15 @@ package captcha
|
|||||||
import (
|
import (
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
|
"errors"
|
||||||
"image"
|
"image"
|
||||||
"strconv"
|
"strconv"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var errorNotFound = errors.New("captcha not found")
|
||||||
|
|
||||||
var expiredScanInterval = 60 * time.Second
|
var expiredScanInterval = 60 * time.Second
|
||||||
|
|
||||||
type ID string
|
type ID string
|
||||||
|
Loading…
Reference in New Issue
Block a user