payload
payload copied to clipboard
Reset Password form is not running beforeValidate hook
Link to reproduction
No response
Payload Version
3.0.0-beta.74
Node Version
v20.15.1
Next.js Version
15.0.0-canary.53
Describe the Bug
We’ve got a beforeValidate
hook setup for our users collection to enforce secure passwords (min length and other validations). This works well in the create and edit user forms in the admin panel
The reset password form doesn’t run the hook, I can update the password to "1234".
Reproduction Steps
- Have
beforeValidate
hook in place - Test hook in admin panel, password "1234" cannot be saved
- Go through "Forgot password?" process to see reset password form
- Set "1234" as new password
Adapters and Plugins
db-mongodb, email-nodemailer, storage-s3