Commit 20d569b8 by Julien Jorry

Fix issue with reset password

parent 749ccd19
......@@ -45,11 +45,13 @@ class UserListener implements EventSubscriberInterface
public function onResetInitialize(GetResponseNullableUserEvent $event)
{
$user = $event->getUser();
if ($user != null) {
$user->setPasswordRequestedAt(null);
$user->setConfirmationToken(null);
$this->em->persist($user);
$this->em->flush();
}
}
public function onChangePasswordSuccess(FormEvent $event)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment