Require stronger passwords

By default, Shopify only requires customers to create a 5 digit password. Using Customer Fields, you can require your customers to create a stronger password. 

Here's how to set this up in the app admin: 

  1. Launch the app's form builder from the Forms page by clicking the "Edit" button for the form you wish to make changes to.
  2. Click on the "Password" field to view the field's options.
  3. On the 'Details' tab, scroll down to the bottom and you'll find a 'Validation' section.
  4. Click the 'Add validation rule' button 
  5. Select "Must match regular expression"
  6. You can technically use any regular expression (aka "regex") you desire, but to save you some time we've included a regex template below. This particular regex will force customers to use a password that has at least 8 characters, and must include one upper case letter, one lower case letter, and one numeric digit:

Regex:
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,20}$ 

Error message:
Must be at least 8 characters and include one upper case letter, one lower case letter, and one numeric digit.

After you add the regex and error message, make sure to save your changes.  We then suggest giving the form a test to see if it works to your liking 👍 

Did this answer your question?