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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function validatePw(theForm) {
|
function validateUserFields(theForm) {
|
||||||
if (theForm.Username.value.length == 0 ) {
|
if (theForm.Username.value.length == 0 ) {
|
||||||
alert("Please enter a valid Email address.");
|
alert("Please enter a valid Email address.");
|
||||||
theForm.Username.focus();
|
theForm.Username.focus();
|
||||||
|
@ -24,6 +24,16 @@
|
||||||
alert("Please enter a Last Name.");
|
alert("Please enter a Last Name.");
|
||||||
theForm.LastName.focus();
|
theForm.LastName.focus();
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function validatePw(theForm) {
|
||||||
|
|
||||||
|
if ( !validateUserFields(theForm) ) {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
if (theForm.Md5password.value.length == 0 ) {
|
if (theForm.Md5password.value.length == 0 ) {
|
||||||
alert("Please enter a password.");
|
alert("Please enter a password.");
|
||||||
|
|
Loading…
Add table
Reference in a new issue