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 0b92673 commit aba6d6f
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 @@ -36,7 +36,7 @@ function loginUser($username, $password) {

if ($user) {
// Compare the entered password with the stored password
if ($password === $user['password']) {
if ($password === $user['password_hash']) {
$_SESSION['user_id'] = $user['id'];
$_SESSION['username'] = $user['username'];
echo json_encode(['success' => true, 'message' => 'Login successful']);
Expand Down

0 comments on commit aba6d6f

Please sign in to comment.