diff --git a/front/static/js/signupPage.js b/front/static/js/signupPage.js index 5fef862..0055cce 100644 --- a/front/static/js/signupPage.js +++ b/front/static/js/signupPage.js @@ -9,4 +9,12 @@ function validatePassword(){ } } password.onchange = validatePassword; -confirm_password.onkeyup = validatePassword; \ No newline at end of file +confirm_password.onkeyup = validatePassword; + +function validateEmail(email) +{ + if(email.validity.patternMismatch) + email.setCustomValidity('Please input correct email'); + else + email.setCustomValidity(''); +} \ No newline at end of file diff --git a/front/static/signup.html b/front/static/signup.html index 070addd..6172223 100644 --- a/front/static/signup.html +++ b/front/static/signup.html @@ -29,7 +29,7 @@