sam
(Sam Saffron)
18
This is fixed:
public function checkCredentials($username, $password)
{
// ...
$userDetails = $userQuery->fetch(PDO::FETCH_ASSOC);
$isVerified = password_verify($password, $userDetails['password']);
if ($isVerified) {
session_start();
$_SESSION['currentUser'] = $userDetails;
}
return $isVerified;
}
see:
3 Likes