Iteck,
il y a 9 ans
Et quand je fais comme ça :
if(isset($_POST['submit-login-user']))
{
$db = App::getDatabase();
$user = $db->query('SELECT * FROM users WHERE username = ? AND confirm_at IS NOT NULL', [$_POST['username']])->fetch();
if(password_verify($_POST['password'], $user->password))
{
$_SESSION['auth'] = $user;
header('Location: account.php');
exit();
} else {
echo '<div class="form-error"><ul><li>Identifiant incorrecte.</li></ul></div>';
}
}
Voici l'érreur :
Notice: Trying to get property of non-object in