Spaces:
Running
Running
Update templates/register.html
Browse files- templates/register.html +2 -2
templates/register.html
CHANGED
@@ -86,8 +86,8 @@
|
|
86 |
if (result.success) {
|
87 |
showAlert('Account created successfully! Redirecting...', 'success');
|
88 |
setTimeout(() => {
|
89 |
-
window.location.href = '/chat';
|
90 |
-
},
|
91 |
} else {
|
92 |
showAlert(result.message || 'Registration failed', 'danger');
|
93 |
}
|
|
|
86 |
if (result.success) {
|
87 |
showAlert('Account created successfully! Redirecting...', 'success');
|
88 |
setTimeout(() => {
|
89 |
+
window.location.href = result.redirect || '/chat';
|
90 |
+
}, 1500);
|
91 |
} else {
|
92 |
showAlert(result.message || 'Registration failed', 'danger');
|
93 |
}
|