Skip to content
This repository was archived by the owner on Dec 21, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Controller/Public/ResetPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public function reset(Request $request, UserPasswordHasherInterface $passwordHas
}

try {
/** @var User */
$user = $this->resetPasswordHelper->validateTokenAndFetchUser($token);
} catch (ResetPasswordExceptionInterface $e) {
$this->addFlash('reset_password_error', sprintf(
Expand All @@ -118,6 +119,9 @@ public function reset(Request $request, UserPasswordHasherInterface $passwordHas
);

$user->setPassword($encodedPassword);
// If you went through the password reset process, your email is verified
$user->setIsVerified(true);

$this->entityManager->flush();

// The session is cleaned up after the password has been changed.
Expand Down
Loading