NIHVIVO-1705: fix for user account required fields
This commit is contained in:
parent
e0beb9c77b
commit
0356e4dde9
1 changed files with 12 additions and 2 deletions
|
@ -9,7 +9,7 @@
|
|||
return true;
|
||||
}
|
||||
|
||||
function validatePw(theForm) {
|
||||
function validateUserFields(theForm) {
|
||||
if (theForm.Username.value.length == 0 ) {
|
||||
alert("Please enter a valid Email address.");
|
||||
theForm.Username.focus();
|
||||
|
@ -24,6 +24,16 @@
|
|||
alert("Please enter a Last Name.");
|
||||
theForm.LastName.focus();
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function validatePw(theForm) {
|
||||
|
||||
if ( !validateUserFields(theForm) ) {
|
||||
return false;
|
||||
}
|
||||
if (theForm.Md5password.value.length == 0 ) {
|
||||
alert("Please enter a password.");
|
||||
|
@ -40,7 +50,7 @@
|
|||
theForm.Md5password.focus();
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue