1
0
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:
amygit 2016-11-18 16:09:22 -08:00
parent ac25a98c72
commit 647aa61090

View File

@ -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()