Update: profile button after login

This commit is contained in:
hyzen
2026-06-04 21:24:48 +05:30
parent 9a68304110
commit cb0d929f7a
68 changed files with 373 additions and 471 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');