mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-06-30 23:12:16 +02:00
Update: profile button after login
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user