Skip to content

Commit

Permalink
fix bug in sample login api api/login.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vgalvoso committed Apr 3, 2024
1 parent 1452dd7 commit 2da5ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function post(){
$params = ["username" => $username];
if(!$user = $db->getItem($query,$params))
redirect("login/login_failed");
if(!password_verify($password,$user->password))
if(password_verify($password,$user->password))
redirect("dashboard");

}
Expand Down

0 comments on commit 2da5ea8

Please sign in to comment.