1
0
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:
Aaron L 2016-11-29 22:11:33 -08:00 committed by GitHub
commit ad75d0a25a

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