Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
rc
self-reg-form
Commits
fefcf1a8
Commit
fefcf1a8
authored
Mar 11, 2021
by
Krish Moodbidri
Browse files
redir to error.html page on receiving socket account error
parent
2e1b4ac3
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/templates/auth/SignUp.html
View file @
fefcf1a8
...
...
@@ -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
'
);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment