mirror of
https://github.com/volatiletech/authboss.git
synced 2025-01-08 04:03:53 +02:00
Merge pull request #103 from amygit/master
AttemptNumber should be set to 1 when login fails again after the loc…
This commit is contained in:
commit
ad75d0a25a
@ -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…
Reference in New Issue
Block a user