Skip to content

Commit 9c64d6f

Browse files
authored
Merge pull request FriendsOfSymfony#2274 from XWB/confirmation
Fixed email confirmation option in RegistrationController
2 parents 6719769 + abe497f commit 9c64d6f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Controller/RegistrationController.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ public function registerAction(Request $request)
7171
$userManager->updateUser($user);
7272

7373
if (null === $response = $event->getResponse()) {
74-
$url = $this->generateUrl('fos_user_registration_confirmed');
74+
$url = $this->getParameter('fos_user.registration.confirmation.enabled')
75+
? $this->generateUrl('fos_user_registration_confirmed')
76+
: $this->generateUrl('fos_user_profile_show');
77+
7578
$response = new RedirectResponse($url);
7679
}
7780

0 commit comments

Comments
 (0)