From fefcf1a8958eef635dd390d084a1a91c184a2f66 Mon Sep 17 00:00:00 2001 From: Krish Moodbidri <krish94@uab.edu> Date: Thu, 11 Mar 2021 16:52:52 -0600 Subject: [PATCH] redir to error.html page on receiving socket account error --- app/templates/auth/SignUp.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/templates/auth/SignUp.html b/app/templates/auth/SignUp.html index f9c2350..d67308b 100644 --- a/app/templates/auth/SignUp.html +++ b/app/templates/auth/SignUp.html @@ -27,12 +27,9 @@ }); socket.on( 'account error', function( msg ) { - $('#myModal2').modal('hide'); - window.location.replace('{{ error_page }}'); - }); - - socket.on( 'Account creation failed', function( msg ) { - document.getElementById("error").innerText = "Registration Failed. Please try again."; + console.log(msg); + $('#myModal2').modal('hide'); + window.location.replace('/register/error_account'); }); }); -- GitLab