Skip to content

Commit

Permalink
Update code.js
Browse files Browse the repository at this point in the history
  • Loading branch information
LoganWitte committed Feb 12, 2024
1 parent 13f878b commit 82fdda4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion html/js/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ function doSignUp() {
pass = 0;
}

if (pass == 0) {
return;
}

let regExUppercase = /[A-Z]/;
let regExLowercase = /[a-z]/;
let regExNumber = /\d/;
Expand All @@ -185,7 +189,7 @@ function doSignUp() {
errorMessage += "Password must contain a special character *";
}
errorField.innerHTML = errorMessage;
if (errorMessage != "" || pass == 0) {
if (errorMessage != "") {
return;
}

Expand Down

0 comments on commit 82fdda4

Please sign in to comment.