fix: inject token as JS global (no sessionStorage needed), skip bridge.php, direct login→app

This commit is contained in:
2026-06-01 10:01:00 +00:00
parent 2af5c03f1a
commit e0fc31332c
3 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$_SESSION['jarvis_user_id'] = $user['id'];
$_SESSION['jarvis_name'] = $user['display_name'];
$pdo->prepare('UPDATE users SET last_seen=NOW() WHERE id=?')->execute([$user['id']]);
header('Location: /bridge.php');
header('Location: /');
exit;
}
$error = 'ACCESS DENIED';