mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-29 21:06:26 +02:00
Fix changement mot de passe oublié
This commit is contained in:
parent
b5fb0c3150
commit
a6f849cfce
1 changed files with 1 additions and 1 deletions
|
@ -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'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue