How to increase the required character length on password fields

Article author
Josh Lopez
  • Updated

Using Memberstack 2.0? There is an updated version of this article here.

Memberstack requires passwords to be at least 8 characters long. The following article explains how to increase this limit.

 

Want to know how to make a password field require a certain amount of characters? Here is how to do that! 😃

 

Official documentation on the "minlength" attribute.

Scenario: You need to require at least 9 characters in a password field. Your password field looks like:

 

<input type="password" id="pass" name="password" required>


Solution:
In this scenario, you would add a "minlength" attribute like:

 

<input type="password" id="pass" name="password" minlength="9" required>

 

Now a user will not be able to submit the form without a password of at least 9 characters! 🎉

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.