Confrim password match when registering new user #581

Closed
opened 2026-03-13 07:54:41 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @orgharoy on GitHub (Jan 22, 2025).

Is this suited for github?

  • Yes, this is suited for github

Add confirmation that passwords match when registering new user.

Describe the solution you'd like

take an extra param in signUp.email() method for password confirmation.
check first that the two passwords match before registring a new user.

Describe alternatives you've considered

none

Additional context

No response

Originally created by @orgharoy on GitHub (Jan 22, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Add confirmation that passwords match when registering new user. ### Describe the solution you'd like take an extra param in `signUp.email()` method for password confirmation. check first that the two passwords match before registring a new user. ### Describe alternatives you've considered none ### Additional context _No response_
Author
Owner

@DilbertRV commented on GitHub (Jan 22, 2025):

In my opinion, I really don't think it is the right flow for the Sign up, what you indicate is not implemented in the custom flow of Auth0 or even Clerk, as this falls how the owner wants to register the user.

You could try to achieve this with Zod before calling the Sign Up function, verify on the client side that the password matches.

@DilbertRV commented on GitHub (Jan 22, 2025): In my opinion, I really don't think it is the right flow for the Sign up, what you indicate is not implemented in the custom flow of Auth0 or even Clerk, as this falls how the owner wants to register the user. You could try to achieve this with **Zod** before calling the Sign Up function, verify on the client side that the password matches.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#581