From 75a82c4a5160bc447a915ed0851a2ccb3b3acf73 Mon Sep 17 00:00:00 2001 From: amygit Date: Fri, 18 Nov 2016 16:09:22 -0800 Subject: [PATCH] AttemptNumber should be set to 1 when login fails again after the lock windown is passed --- lock/lock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lock/lock.go b/lock/lock.go index 41a56fd..62846e1 100644 --- a/lock/lock.go +++ b/lock/lock.go @@ -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()