Skip to content

How to Add and Validate a Second Password Field on Profile and Password Reset Pages? #307

@funktionaer

Description

@funktionaer

Hello,

I’m working with the Login plugin and want to enhance the profile and password reset pages by adding a second password field (e.g., confirm_password) to ensure the user correctly confirms their password.

Specifically, I’d like to:

  • Add a confirm_password field to the respective forms.
  • Validate that confirm_password matches the password field before processing the form submission.
  • Display an error message if the fields do not match.

What is the best way to achieve this? Should I use custom frontmatter for these pages or extend the plugin's functionality? Are there hooks or methods within the Login plugin that can help me perform this validation?

Any guidance, examples, or best practices would be greatly appreciated.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    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