Fixed issue with roc_auth.js
This commit is contained in:
@@ -310,10 +310,12 @@ var password = document.getElementById("password")
|
|||||||
, confirm_password = document.getElementById("confirm_password");
|
, confirm_password = document.getElementById("confirm_password");
|
||||||
|
|
||||||
ROC_AUTH.validatePassword =function(){
|
ROC_AUTH.validatePassword =function(){
|
||||||
if(password.value != confirm_password.value) {
|
if ((password != null) && (confirm_password != null)){
|
||||||
confirm_password.setCustomValidity("Passwords Don't Match");
|
if(password.value != confirm_password.value) {
|
||||||
} else {
|
confirm_password.setCustomValidity("Passwords Don't Match");
|
||||||
confirm_password.setCustomValidity('');
|
} else {
|
||||||
|
confirm_password.setCustomValidity('');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user