mirror of
https://github.com/volatiletech/authboss.git
synced 2025-04-11 11:41:48 +02:00
AttemptNumber should be set to 1 when login fails again after the lock windown is passed
This commit is contained in:
parent
ac25a98c72
commit
647aa61090
@ -116,7 +116,7 @@ func (l *Lock) afterAuthFail(ctx *authboss.Context) error {
|
||||
|
||||
ctx.User[StoreAttemptNumber] = nAttempts
|
||||
} else {
|
||||
ctx.User[StoreAttemptNumber] = int64(0)
|
||||
ctx.User[StoreAttemptNumber] = int64(1)
|
||||
}
|
||||
ctx.User[StoreAttemptTime] = time.Now().UTC()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user