I removed all below codes from wcfmvm-script-membership-registration.js but still it shows on front end. How is it possible?
$(‘#passoword’).keyup(function() {
if( wcfm_registration_params.is_strength_check ) {
checkStrength($(‘#passoword’).val());
}
});
function checkStrength( password ) {
var strength = 0
if (password.length < 6) {
$(‘#password_strength’).removeClass();
$(‘#password_strength’).addClass(‘short’)
$(‘#password_strength’).html(wcfm_registration_params.short);
return ‘short’;
}
if (password.length > 7) strength += 1
// If password contains both lower and uppercase characters, increase strength value.
if (password.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)) strength += 1
// If it has numbers and characters, increase strength value.
if (password.match(/([a-zA-Z])/) && password.match(/([0-9])/)) strength += 1
// If it has one special character, increase strength value.
if (password.match(/([!,%,&,@,#,$,^,*,?,_,~])/)) strength += 1
// If it has two special characters, increase strength value.
if (password.match(/(.*[!,%,&,@,#,$,^,*,?,_,~].*[!,%,&,@,#,$,^,*,?,_,~])/)) strength += 1
// Calculated strength value, we can return messages
// If value is less than 2
if (strength < 2) {
$(‘#password_strength’).removeClass()
$(‘#password_strength’).addClass(‘weak’)
$(‘#password_strength’).html( wcfm_registration_params.weak );
return ‘weak’;
} else if (strength == 2) {
$(‘#password_strength’).removeClass()
$(‘#password_strength’).addClass(‘good’)
$(‘#password_strength’).html( wcfm_registration_params.good );
return ‘good’;
} else {
$(‘#password_strength’).removeClass()
$(‘#password_strength’).addClass(‘strong’)
$(‘#password_strength’).html( wcfm_registration_params.strong );
return ‘strong’;
}
}