mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-09-19 02:23:17 +02:00
Fix: strict session check
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
return r.json();
|
||||
})
|
||||
.then(function (data) {
|
||||
if (!data.valid) {
|
||||
if (data.valid === false) {
|
||||
// Session invalid — clear localStorage and reload to update UI
|
||||
localStorage.removeItem('f4_username');
|
||||
localStorage.removeItem('f4_login_time');
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
return r.json();
|
||||
})
|
||||
.then(function (data) {
|
||||
if (!data.valid) {
|
||||
if (data.valid === false) {
|
||||
// Session invalid — clear localStorage and reload to update UI
|
||||
localStorage.removeItem('f4_username');
|
||||
localStorage.removeItem('f4_login_time');
|
||||
|
||||
Reference in New Issue
Block a user