mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-07-01 15:32:17 +02:00
Fix: validate session on every page load
This commit is contained in:
@@ -171,6 +171,7 @@
|
||||
if (data.success) {
|
||||
showMsg('Logged in successfully! Redirecting\u2026', 'success');
|
||||
localStorage.setItem('f4_username', username);
|
||||
localStorage.setItem('f4_login_time', Date.now());
|
||||
setTimeout(function () {
|
||||
var _next = sessionStorage.getItem('f4_login_next');
|
||||
sessionStorage.removeItem('f4_login_next');
|
||||
|
||||
Reference in New Issue
Block a user