Hi,
I'm looking to make the customer passwords more secure, by say making the password a minimum of 8 characters and having UPPER / lower case characters plus numbers and specials or some combination of these. Is there something in open cart ( using 3.0.2.0 ) that allows for this or does anyone know of an extension ? I'm sure I can't be the first person who wanted to do something like this
TIA
I'm looking to make the customer passwords more secure, by say making the password a minimum of 8 characters and having UPPER / lower case characters plus numbers and specials or some combination of these. Is there something in open cart ( using 3.0.2.0 ) that allows for this or does anyone know of an extension ? I'm sure I can't be the first person who wanted to do something like this
TIA
Go to file catalog/view/YOUR-THEME/default/template/account/register.php,
Search for the line :
<input type="password" name="password" value="{{ password }}" placeholder="{{ entry_password }}" id="input-password" class="form-control" />
Replace It with :
<input type="password" name="password" value="{{ password }}" placeholder="{{ entry_password }}" id="input-password" class="form-control" pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&])[A-Za-z\d$@$!%*?&]{8,}" title="Minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character" />
Search for the line :
<input type="password" name="password" value="{{ password }}" placeholder="{{ entry_password }}" id="input-password" class="form-control" />
Replace It with :
<input type="password" name="password" value="{{ password }}" placeholder="{{ entry_password }}" id="input-password" class="form-control" pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&])[A-Za-z\d$@$!%*?&]{8,}" title="Minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character" />
Opencart Expert | sales[at]ost.agency
Skype - manish.osuniverse | Gtalk - manishmt
Extensions for Opencart @ https://www.ost.agency/product/product- ... extensions
ost.agency - ecommerce website design, development and digital company
The only downside by adding patterns is they are visible through the source.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
OK, being naive, what do you mean when you say - The only downside by adding patterns is they are visible through the source. ?
Visible to who ? when ? isn't it secure once the account has been created and the password stored/encrypted ?
Visible to who ? when ? isn't it secure once the account has been created and the password stored/encrypted ?
Using pattern structures that way are visible through the source from the browser which means those regular expressions are visible through the view-source.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Great, how would this be applied for customers wanting to chang their password, as well as new customers registering accounts ? TIAostechnologies wrote: ↑Wed Jul 04, 2018 7:54 pmGo to file catalog/view/YOUR-THEME/default/template/account/register.php,
Search for the line :
<input type="password" name="password" value="{{ password }}" placeholder="{{ entry_password }}" id="input-password" class="form-control" />
Replace It with :
<input type="password" name="password" value="{{ password }}" placeholder="{{ entry_password }}" id="input-password" class="form-control" pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&])[A-Za-z\d$@$!%*?&]{8,}" title="Minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character" />
Who is online
Users browsing this forum: No registered users and 389 guests