Delete token and time from user password reset after first use -refs BT#9897 #TMI

1.10.x
Nicolas Ducoulombier 10 years ago
parent 0f817c8234
commit 5af5c2834c
  1. 6
      main/auth/reset.php

@ -48,6 +48,12 @@ if ($form->validate()) {
$userManager = UserManager::getManager();
$userManager->updateUser($user, true);
$user->setConfirmationToken(null);
$user->setPasswordRequestedAt(null);
Database::getManager()->persist($user);
Database::getManager()->flush();
Display::addFlash(Display::return_message(get_lang('Updated')));
header('Location: '.api_get_path(WEB_PATH));
exit;

Loading…
Cancel
Save