Aw: password strength
Thanks!
For anyone who wants to use pw strength check code:
put the regexp into the checkEqualNotEmpty function: components/com_joomshopping/js/validateForm.js
Like this:
this.checkEqualNotEmpty = function(notEmpty){
var element2 = this.getValue(0);
var element1 = this.getValue(this.getParam());
var pattern = /^(?=.*[A-Z].*)(?=.*[0-9].*)(?=.*[a-z].*).{8,}$/;
if (!pattern.test(element2)){
this.addError();
}
else
{
if (element1 != element2){
this.addError();
} else if (notEmpty) {
if (!this.checkNotEmptyFunc(element1)){
this.addError();
}
}
}
}
This pw has to contain 1 uppercase, 1 lowecase, 1 number. The length has to be at least 8 character.