Skip to content

Commit 31809e0

Browse files
authored
Merge pull request #2675 from Laurent3170/patch-4
Redirect to login when using confirmation link more than once
2 parents d2d11e3 + 5b2a199 commit 31809e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Controller/RegistrationController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function checkEmailAction(Request $request)
140140
$user = $this->userManager->findUserByEmail($email);
141141

142142
if (null === $user) {
143-
throw new NotFoundHttpException(sprintf('The user with email "%s" does not exist', $email));
143+
return new RedirectResponse($this->container->get('router')->generate('fos_user_security_login'));
144144
}
145145

146146
return $this->render('@FOSUser/Registration/check_email.html.twig', array(

0 commit comments

Comments
 (0)