mirror of
https://github.com/volatiletech/authboss.git
synced 2025-01-10 04:17:59 +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
c9a9bcb3cc
@ -116,7 +116,7 @@ func (l *Lock) afterAuthFail(ctx *authboss.Context) error {
|
|||||||
|
|
||||||
ctx.User[StoreAttemptNumber] = nAttempts
|
ctx.User[StoreAttemptNumber] = nAttempts
|
||||||
} else {
|
} else {
|
||||||
ctx.User[StoreAttemptNumber] = int64(0)
|
ctx.User[StoreAttemptNumber] = int64(1)
|
||||||
}
|
}
|
||||||
ctx.User[StoreAttemptTime] = time.Now().UTC()
|
ctx.User[StoreAttemptTime] = time.Now().UTC()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user