Jump to content
PrestaBees

P.S. 1.7.6.1 What File do I edit to add password requirements?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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,}"

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More