Skip to content
Snippets Groups Projects
Commit fefcf1a8 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

redir to error.html page on receiving socket account error

parent 2e1b4ac3
Branches feat-href-aup
No related tags found
1 merge request!8made UI changes to the app
...@@ -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.";
}); });
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment