<p>There are a couple of existing plugins that look like they might do what you're looking for:</p>

<p><a href="https://plugins.craftcms.com/password-policy" rel="nofollow noreferrer">https://plugins.craftcms.com/password-policy</a></p>

<p><a href="https://plugins.craftcms.com/enforce-password" rel="nofollow noreferrer">https://plugins.craftcms.com/enforce-password</a></p>

<p>And of course, you could always write a plugin that meets your exact requirements as well.</p>

CC BY-SA 4.0
2019-08-07T10:52:51.497Z
Thanks Brad, this is great information. Perhaps I was unclear, but I was hoping to get a list of what default password requirements craft enforces (So I can pre-inform the user, and include in front-end regex checks)
Seraphim Jester
CC BY-SA 4.0
2019-08-08T04:47:48.017Z
The only thing Craft natively enforces is a minimum password length of 6.
Brad Bell
CC BY-SA 4.0
2019-07-25T22:46:28.370Z
2019-07-25T22:46:28.370Z
Brad Bell
<p>Assume a front end registration form. I would like to validate user passwords before posting to the server. I have not been able to find the default password requirements as of yet for craft 3. Could someone fill in the blank?</p>

<p>From what I have found:</p>

<ul>
<li>At least one capital letter</li>
<li>At least one lowercase letter</li>
<li>No more than 160 characters</li>
</ul>

<craft3><users><password><regex>
Default Users Password Regex
# Default Users Password Regex

(Asked by: username_0 on 2019-07-24)

Assume a front end registration form. I would like to validate user passwords before posting to the server. I have not been able to find the default password requirements as of yet for craft 3. Could someone fill in the blank?

From what I have found:

* At least one capital letter
* At least one lowercase letter
* No more than 160 characters

**Tags:** craft3, users, password, regex


---

## 1 answers

### Answer by username_1 on 2019-07-25. Score: 1

There are a couple of existing plugins that look like they might do what you're looking for:

<https://plugins.craftcms.com/password-policy>

<https://plugins.craftcms.com/enforce-password>

And of course, you could always write a plugin that meets your exact requirements as well.

> **Comments:**
> **username_0**: Thanks Brad, this is great information. Perhaps I was unclear, but I was hoping to get a list of what default password requirements craft enforces (So I can pre-inform the user, and include in front-end regex checks)  
> **username_1**: The only thing Craft natively enforces is a minimum password length of 6.  

---

