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!