|
|
|
|
@ -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; |
|
|
|
|
|