mirror of
https://github.com/PrivateCaptcha/PrivateCaptcha.git
synced 2026-02-11 16:29:00 -06:00
Register time.Time for 2FA code expiration serialization
This commit is contained in:
@@ -16,6 +16,11 @@ var (
|
||||
ErrSessionMissing = errors.New("session is missing")
|
||||
)
|
||||
|
||||
func init() {
|
||||
// for two factor timestamp
|
||||
gob.Register(time.Time{})
|
||||
}
|
||||
|
||||
type SessionKey int
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user