"Confirm Password" Field on Sign Up

Overview

This article addresses whether it is possible to force a new user to confirm their password during the sign-up process.

Applies To

  • New User
  • Sign-up
  • Password Confirmation

Solution

When using the Auth0 Universal Login, to add a Confirm Password field, there are two options:

  1. Use Signup Prompt Partials
    With partials, a new form element can be added that can act as a second password field. However, it is important to make sure the second field is not sent to Auth0 and kept in the frontend only to avoid the plain-text password from getting attached to the user profile. Here is an example:
<div class="ulp-field">
  <label for="confrimPassword">Confirm Password</label>
  <input type="password" id="confirmPassword" />
  <div
    class="ulp-error-info"
    data-ulp-validation-function="validatePassword"
    data-ulp-validation-event-listeners="change,input"
  >
    Passwords Do Not Match
  </div>
</div>

Keep in mind that the above code may not be production-ready and is meant as an example only.
More info about partials here: Customize Signup and Login Prompts

  1. Use Advanced Customizations for Universal Login (ACUL)
    With ACUL, it is possible to design the signup page freely to add any new elements, including a Confirm Password field. This option requires some development effort.
    More info about ACUL can be found here: Advanced Customizations for Universal Login

If Classic Login is used, customize the Login page using Auth0.js to add new fields. For further information, refer to Auth0.js v9 Reference - Signups

To see this functionality implemented as a regular Dashboard option, please submit a feature request via our Customer Feedback page. All requests will be reviewed and prioritized by the Product team.