$username], 'id')[0]; if (checkPassword($id, $_POST['password']) !== true) output(403, 'Connexion impossible : clé de passe invalide.'); $_SESSION['id'] = $id; $_SESSION['display-username'] = htmlspecialchars($_POST['username']); $_SESSION['type'] = query('select', 'users', ['id' => $id], 'type')[0]; if (outdatedPasswordHash($id)) changePassword($id, $_POST['password']); redir(); } ?>

Pas de compte ? En créer un