2015-06-26, 06:15 AM
hi all,
I have a VERY stripped down registration page. there seems to be a problem with displaying a message about requiring a complex password, something about the javascript validation not taking complex passwords into account. leefish had mentioned this bit:
here's how my page looks:
any ideas?
I have a VERY stripped down registration page. there seems to be a problem with displaying a message about requiring a complex password, something about the javascript validation not taking complex passwords into account. leefish had mentioned this bit:
$('#password').rules('add', {
required: true,
minlength: 8,
remote:{
url: 'xmlhttp.php?action=complex_password',
type: 'post',
dataType: 'json',
data:
{
my_post_key: my_post_key
},
},
messages: {
minlength: 'Your password must be 8 or more characters long',
required: 'Your password must be 8 or more characters long',
remote: 'You need to enter the text in the image above'
}
});
$('#password2').rules('add', {
required: true,
minlength: 8,
equalTo: '#password',
messages: {
minlength: 'Your password must be 8 or more characters long',
required: 'Your password must be 8 or more characters long',
equalTo: 'The passwords you enter must match'
}
});
here's how my page looks:
any ideas?