Skip to content

Commit

Permalink
Merge pull request #103 from amygit/master
Browse files Browse the repository at this point in the history
AttemptNumber should be set to 1 when login fails again after the loc…
  • Loading branch information
aarondl committed Nov 30, 2016
2 parents c76295c + 75a82c4 commit c9a9bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lock/lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit c9a9bcb

Please sign in to comment.