diff --git a/server_files/controllers/connexion.php b/server_files/controllers/connexion.php index 811abf1..9a441c8 100644 --- a/server_files/controllers/connexion.php +++ b/server_files/controllers/connexion.php @@ -70,6 +70,7 @@ class LoggingInUser public function login() { $_SESSION["user_id"] = $this->user->getId(); + $this->user->setForgottenPasswordToken(null); loadUserValues(); } }