Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
funktionaer opened this issue Jan 14, 2025 · 0 comments

Comments

@funktionaer
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant