mirror of
https://github.com/myronblair/jarvis
synced 2026-07-28 08:43:00 -05:00
fix: inject token as JS global (no sessionStorage needed), skip bridge.php, direct login→app
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user