PrestaBees Posted November 6, 2019 Share Posted November 6, 2019 I am wanting to add password requirements like: if (preg_match('/[A-Z]/',$passwd) && preg_match('/[a-z]/',$passwd) && preg_match('/[0-9]/',$passwd) && strlen($passwd)>=8){ What file do I edit to add this and a notice of password is not strong enough, try again? Thank you Link to comment Share on other sites More sharing options...
Knowband Plugins Posted November 6, 2019 Share Posted November 6, 2019 To change the password validation, Kindly edit the following file. /themes/{theme-name}/templates/_partials/form-fields.tpl Find the block "form_field_item_password" and update the the pattern to following. "(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}" Link to comment Share on other sites More sharing options...
PrestaBees Posted November 6, 2019 Author Share Posted November 6, 2019 Thank you!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now