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
No related branches found
No related tags found
No related merge requests found
Pipeline #4272 failed with stage
......@@ -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');
});
});
......
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