Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
KotsiosDimis committed Dec 27, 2024
1 parent 087adf4 commit 5f10447
Show file tree
Hide file tree
Showing 2 changed files with 901 additions and 901 deletions.
2 changes: 1 addition & 1 deletion lib/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function loginUser($username, $password) {

try {
$pdo = getDatabaseConnection();
$sql = "SELECT id , username, password FROM users WHERE username = :username";
$sql = "SELECT user_id , username, password FROM users WHERE username = :username";
$stmt = $pdo->prepare($sql);
$stmt->execute([':username' => $username]);
$user = $stmt->fetch(PDO::FETCH_ASSOC);
Expand Down
Loading

0 comments on commit 5f10447

Please sign in to comment.