Skip to content

Reset Password form is not running beforeValidate hook #7582

Closed

Description

@carlcs

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

  1. Have beforeValidate hook in place
  2. Test hook in admin panel, password "1234" cannot be saved
  3. Go through "Forgot password?" process to see reset password form
  4. Set "1234" as new password

Adapters and Plugins

db-mongodb, email-nodemailer, storage-s3

Activity

  1. added
    status: needs-triage
    on Aug 8, 2024
  2. carlcs commented on Aug 8, 2024

    @carlcs
    Author

    Issue is with beta 74, I can’t test with beta 76 because of #7580.

  3. removed
    status: needs-triage
    on Aug 8, 2024
  4. added
    status: verified
    on Sep 26, 2024
  5. github-actions commented on Oct 15, 2024

    @github-actions
    Contributor

    🚀 This is included in version v3.0.0-beta.114

  6. removed
    status: verified
    on Oct 24, 2024
  7. github-actions commented on Oct 26, 2024

    @github-actions
    Contributor

    This issue has been automatically locked.
    Please open a new issue if this issue persists with any additional detail.

  8. locked as resolved and limited conversation to collaborators on Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions