|
|
|
@ -221,10 +221,10 @@ $(document).ready(function() {
|
|
|
|
|
passwordvalid = utils.isPasswordValid(password.val());
|
|
|
|
|
if (password.val().length < 6) {
|
|
|
|
|
password_notify.html('Password too short');
|
|
|
|
|
password_notify.attr('class', 'label label-important');
|
|
|
|
|
password_notify.attr('class', 'label label-danger');
|
|
|
|
|
} else if(!passwordvalid) {
|
|
|
|
|
password_notify.html('Invalid password');
|
|
|
|
|
password_notify.attr('class', 'label label-important');
|
|
|
|
|
password_notify.attr('class', 'label label-danger');
|
|
|
|
|
} else {
|
|
|
|
|
password_notify.html('OK!');
|
|
|
|
|
password_notify.attr('class', 'label label-success');
|
|
|
|
@ -236,7 +236,7 @@ $(document).ready(function() {
|
|
|
|
|
function onPasswordConfirmChanged() {
|
|
|
|
|
if(password.val() !== password_confirm.val()) {
|
|
|
|
|
password_confirm_notify.html('Passwords must match!');
|
|
|
|
|
password_confirm_notify.attr('class', 'label label-important');
|
|
|
|
|
password_confirm_notify.attr('class', 'label label-danger');
|
|
|
|
|
passwordsmatch = false;
|
|
|
|
|
} else {
|
|
|
|
|
password_confirm_notify.html('OK!');
|
|
|
|
|