-
|
Hi all, got the following setup for the users' collection: auth: {
useAPIKey: true,
tokenExpiration: 86400, // 24h
maxLoginAttempts: 3,
lockTime: 900, // 15min
},As a test did multiple login attempts via graphql-playground where I got the following message in first 3 attempts: ^ That's ok and as expected. 4th attempt ^ Fine. 5th attempt ^ Say whaaaat? On 6th attempt, I set the correct password and got logged in. However, the expected response would be - a locked account. Question - is Version 1.2.0 Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Turns out it is working just fine... Annoyingly @ https://payloadcms.com/docs/authentication/config it didn't state that Spotted that it is meant to be in ms @ https://payloadcms.com/docs/production/preventing-abuse. Suggestion for the documentation - maybe it's worth having an additional column(s), e.g. default values, expected units, etc. |
Beta Was this translation helpful? Give feedback.
Turns out it is working just fine...
Annoyingly @ https://payloadcms.com/docs/authentication/config it didn't state that
lockTimeis defined in ms and I simply assumed that it is seconds as two rows abovetokenExpirationis in fact configured in seconds.Spotted that it is meant to be in ms @ https://payloadcms.com/docs/production/preventing-abuse.
Suggestion for the documentation - maybe it's worth having an additional column(s), e.g. default values, expected units, etc.