|
|
@ -1521,22 +1521,24 @@ function my_account_form_submit() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($("input[name='new_password']").length>0){
|
|
|
|
|
|
|
|
if($("input[name='new_password']").val().length<8){
|
|
|
|
|
|
|
|
$("#new_password").focus();
|
|
|
|
|
|
|
|
$("#new_password_hint").show();
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("#new_password_hint").hide();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($("input[name='new_password']").val().length<8){
|
|
|
|
if($("input[name='new_password']").val() !== $("input[name='new_password_confirmation']").val() ){
|
|
|
|
$("#new_password").focus();
|
|
|
|
$("#new_password_confirmation").focus();
|
|
|
|
$("#new_password_hint").show();
|
|
|
|
$("#new_password_confirmation_hint").show();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$("#new_password_hint").hide();
|
|
|
|
$("#new_password_confirmation_hint").hide();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($("input[name='new_password']").val() !== $("input[name='new_password_confirmation']").val() ){
|
|
|
|
|
|
|
|
$("#new_password_confirmation").focus();
|
|
|
|
|
|
|
|
$("#new_password_confirmation_hint").show();
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("#new_password_confirmation_hint").hide();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($("#userIdentity").val() == -1) {
|
|
|
|
if ($("#userIdentity").val() == -1) {
|
|
|
|
$("#identity_hint").show();
|
|
|
|
$("#identity_hint").show();
|
|
|
|