This commit is contained in:
2025-12-08 03:06:55 +01:00
parent 20410b8525
commit 0e8f4531c1
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ async function ensureAuthenticated() {
try {
const me = await apiAction('auth.me', { method: 'GET' });
if (!me?.ok || !me?.user) {
window.location.href = '/login.php';
// window.location.href = '/login.php';
return false;
}
window.__currentUser = me.user;

View File

@@ -16,7 +16,7 @@ async function ensureAuthenticated() {
try {
const me = await apiAction('auth.me', { method: 'GET' });
if (!me?.ok || !me?.user) {
window.location.href = '/login.php';
// window.location.href = '/login.php';
return false;
}
window.__currentUser = me.user;

View File

@@ -11,7 +11,7 @@ async function ensureAuthenticated() {
try {
const me = await apiAction('auth.me', { method: 'GET' });
if (!me?.ok || !me?.user) {
window.location.href = '/login.php';
// window.location.href = '/login.php';
return false;
}
window.__currentUser = me.user;