mirror of
https://github.com/volatiletech/authboss.git
synced 2025-01-10 04:17:59 +02:00
Fix test for ctx.User.AttemptNumber fix
This commit is contained in:
parent
75a82c4a51
commit
67cb40ea6f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user