mirror of
https://github.com/volatiletech/authboss.git
synced 2025-09-16 09:06:20 +02:00
Merge pull request #106 from amygit/master
Fix test for ctx.User.AttemptNumber fix
This commit is contained in:
@@ -146,7 +146,7 @@ func TestAfterAuthFail_Reset(t *testing.T) {
|
||||
}
|
||||
|
||||
lock.afterAuthFail(ctx)
|
||||
if val := storer.Users[email][StoreAttemptNumber].(int64); val != int64(0) {
|
||||
if val := storer.Users[email][StoreAttemptNumber].(int64); val != int64(1) {
|
||||
t.Error("StoreAttemptNumber set incorrectly:", val)
|
||||
}
|
||||
if current, ok = storer.Users[email][StoreAttemptTime].(time.Time); !ok || current.Before(old) {
|
||||
|
Reference in New Issue
Block a user