From fdea65e03218d175bcc5d5f2bbb426688a6cf42e Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Fri, 29 Jan 2021 13:48:48 +0200 Subject: hero_form => login_form or register_form as they are now in the same file and conflicted --- main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'main.js') diff --git a/main.js b/main.js index a775eb7..f3b6f9a 100644 --- a/main.js +++ b/main.js @@ -49,7 +49,7 @@ function clear_hero_errors() } function validate_hero_login_form() { - var username=document.forms["hero_form"]["username"].value; + var username=document.forms["login_form"]["username"].value; var flag=true; clear_hero_errors(); @@ -63,10 +63,10 @@ function validate_hero_login_form() } function validate_hero_form() { - var username=document.forms["hero_form"]["username"].value; - var email=document.forms["hero_form"]["email"].value; - var password=document.forms["hero_form"]["password"].value; - var password2=document.forms["hero_form"]["password2"].value; + var username=document.forms["register_form"]["username"].value; + var email=document.forms["register_form"]["email"].value; + var password=document.forms["register_form"]["password"].value; + var password2=document.forms["register_form"]["password2"].value; var flag=true; clear_hero_errors(); -- cgit v1.2.3