From a6f849cfcefe87bf57d6376fac4addcea614a502 Mon Sep 17 00:00:00 2001 From: OsaAjani Date: Thu, 10 Mar 2016 13:59:17 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20changement=20mot=20de=20passe=20oubli?= =?UTF-8?q?=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/connect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/connect.php b/controllers/connect.php index 43372a0..f647c8c 100755 --- a/controllers/connect.php +++ b/controllers/connect.php @@ -94,7 +94,7 @@ } $new_password = sha1($password); - if (!$db->updateTableWhere('users', ['email' => $user['email'], 'password' => $new_password, 'admin' => $user['admin']], ['id' => $user['id']])) + if (!$db->updateTableWhere('users', ['email' => $user['email'], 'password' => $new_password, 'admin' => $user['admin'], ['id' => $user['id']])) { $_SESSION['errormessage'] = 'Impossible de mettre à jour le mot de passe.'; header('Location: ' . $this->generateUrl('connect'));