loginAttempts not getting reset to 0 on successful login, how to fix ? #8357
Replies: 3 comments 3 replies
-
That is exactly how it currently works. If the |
Beta Was this translation helpful? Give feedback.
-
hi, i am adding auth params from a plugin can this be an issue ? , i am on payload version 2.27.0 here is my relevant plugin config
|
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue on v2.23.1, no hooks on my user collection. My config looks similar to OP's...could access control be a contributing factor? I'd be happy to submit a bug report and fix if the team will accept one. I'm currently manually flushing auth: {
useAPIKey: true,
verify: true,
tokenExpiration: 60 * 60 * 60, // 1hr
cookies: {
sameSite: 'none',
secure: true,
// nb: the frontend uses payload cookies for preview mode auth,
// so it also needs to be hosted under the same AUTH_TLD.
// by default, the cookie domain is assigned to the `serverURL` domain
...(process.env.AUTH_TLD ? { domain: process.env.AUTH_TLD } : {}),
},
}, |
Beta Was this translation helpful? Give feedback.
-
hi,
currently
loginAttempts
retain the value they have even after a successful login, they should ideally be reset to 0 , on a successful login.Beta Was this translation helpful? Give feedback.
All reactions