1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-09-16 09:06:20 +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 4835af15f9
commit 75a82c4a51

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