password strength

19.06.2014 19:26
#1
jadam
Joomshopping forum user no avatar
Name: Adam
11.11.2013
Posts: 10
Quote
password strength

Hello!

How can I set up the password strength at joomshopping user registration, because setting the password strength in joomla general config doesn't take effect on joomshopping registration.

Into which file should I insert the pw strength check code?

Thank you!

 
19.06.2014 21:56
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16487
Quote
Aw: password strength

components\com_jshopping\js\functions.js

 
25.06.2014 16:38
#3
jadam
Joomshopping forum user no avatar
Name: Adam
11.11.2013
Posts: 10
Quote
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.

 
Copyrights MAXXmarketing GmbH. All Rights Reserved