diff options
| -rwxr-xr-x | static/js/register.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/static/js/register.js b/static/js/register.js index c351035..16cc8b0 100755 --- a/static/js/register.js +++ b/static/js/register.js @@ -16,6 +16,11 @@ function submitRegistration() { return; } + if (!validateEmail(email)) { + alert("Please enter a valid email address!"); + return; + } + if (password != password2) { alert("Passwords must match!"); return; @@ -26,11 +31,6 @@ function submitRegistration() { return; } - if (!validateEmail(email)) { - alert("Please enter a valid email address!"); - return; - } - var hash = hex_sha1(nick + '$' + password + '$dumpfm'); var onSuccess = function() { if (typeof pageTracker !== 'undefined') { |
