Apply Regex in WP Password Field (Password Regex)
Add regex in Password field with User Meta Pro so that you can specify a pattern and put some restriction into the password. By this, you can force users to set their password in your given way.
To set this just write the regex in pattern box of the password field’s basic menu.
For example: [a-zA-Z0-9]+ , this pattern is indicating alpha-numeric entry.
^(?=.*\d)\w+$ , with this pattern any alphabets are allowed but no special characters and password must contains at least one digit.
^.{6,}$, password must contains at least 6 symbols.
Error Text will be shown, if the password does not match with the given pattern. You can also set the error text.
See All important features of User Meta Pro.
Why don’t you give a try???
Get User Meta Pro.