Fix: profile button after log in

This commit is contained in:
hyzen
2026-06-04 14:13:48 +05:30
parent 9a68304110
commit 19c5c79d8d
66 changed files with 403 additions and 62 deletions

View File

@@ -101,6 +101,7 @@
.then(function (data) {
if (data.success) {
showMsg('Logged in successfully! Redirecting\u2026', 'success');
localStorage.setItem('f4_username', username);
setTimeout(function () { window.location.href = data.redirect || '/'; }, 1000);
} else {
showMsg(data.message || 'Login failed. Please try again.', 'error');