Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
KotsiosDimis committed Dec 27, 2024
1 parent 5f10447 commit 0b92673
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 @@ -29,7 +29,7 @@ function loginUser($username, $password) {

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

0 comments on commit 0b92673

Please sign in to comment.