Home » 2021 » August

Password Validation with PHP and Regular Expressions

Regular Expressions are equally complicated and elegant at the exact same time. They may be made to look like someone was only hammering randomly on their keyboard. They’re also a remarkably effective and elegant solution to describing the structure of the text and fitting those structures. They’re very handy...
Continue reading

How to validate password with regular expression,PHP

Today’s post is about password validation in PHP using Regular Expressions. Here is the small use full Password Validation function. function is_valid_password($password) {    return preg_match_all(‘$S*(?=S{8,})(?=S*[a-z])(?=S*[A-Z])(?=S*[d])(?=S*[W])S*$’, $password) ? TRUE : FALSE;} Password Regular Expression Pattern $S*(?=S{8,})(?=S*[a-z])(?=S*[A-Z])(?=S*[d])(?=S*[W])S*$ Regular Expression Pattern Description      $ =                 beginning of string    S* =                any set of characters(non-whitespace...
Continue reading

OC 3.0.2.0 – Password Length & Complexity

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...
Continue reading

How To Force Customers To Use Strong Passwords In OpenCart

With cyber security becoming a larger concern to businesses online I thought I would write a blog post on how you can ensure that passwords are strong enough on customer accounts.When customers register for an account on a default OpenCart installation, the only requirement seems to be that...
Continue reading