Skip to content

Commit

Permalink
testongv7
Browse files Browse the repository at this point in the history
  • Loading branch information
KotsiosDimis committed Dec 18, 2024
1 parent 8348366 commit 7efbb89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function checkSession() {
session_start();

if (isset($_SESSION['user_id'])) {
echo json_encode(['loggedIn' => true, 'user_id' => $_SESSION['user_id']]);
echo json_encode(['loggedIn' => true, 'user_id' => $_SESSION['user_id'] , 'username' => $_SESSION['username']]);
} else {
echo json_encode(['loggedIn' => false]);
}
Expand Down

0 comments on commit 7efbb89

Please sign in to comment.