diff --git a/app/templates/auth/SignUp.html b/app/templates/auth/SignUp.html index f9c23506a51f755f7e8eb87a5fe9e9f258510e96..d67308b74d1bf378604df880fbcd6d72f7c6f66b 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'); }); });