abdullahalioo commited on
Commit
890c426
·
verified ·
1 Parent(s): 888c5bf

Update templates/register.html

Browse files
Files changed (1) hide show
  1. 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
- }, 2000);
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
  }