Solved: 6 Years, 2 Months, 3 Weeks ago [General] how to display message about complex password
#1
Solved: 6 Years, 2 Months, 3 Weeks ago
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:

$('#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:

[Image: o0rXkXw.jpg]

any ideas?
Reply


Messages In This Thread
how to display message about complex password - by andrewjs18 - 2015-06-26, 06:15 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)