Commit fefcf1a8 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

redir to error.html page on receiving socket account error

parent 2e1b4ac3
...@@ -27,12 +27,9 @@ ...@@ -27,12 +27,9 @@
}); });
socket.on( 'account error', function( msg ) { socket.on( 'account error', function( msg ) {
$('#myModal2').modal('hide'); console.log(msg);
window.location.replace('{{ error_page }}'); $('#myModal2').modal('hide');
}); window.location.replace('/register/error_account');
socket.on( 'Account creation failed', function( msg ) {
document.getElementById("error").innerText = "Registration Failed. Please try again.";
}); });
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment