Skip to content

Commit abe497f

Browse files
committed
Fixed email confirmation option in RegistrationController
1 parent d28d2b0 commit abe497f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Controller/RegistrationController.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ public function registerAction(Request $request)
7575
$userManager->updateUser($user);
7676

7777
if (null === $response = $event->getResponse()) {
78-
$url = $this->generateUrl('fos_user_registration_confirmed');
78+
$url = $this->getParameter('fos_user.registration.confirmation.enabled')
79+
? $this->generateUrl('fos_user_registration_confirmed')
80+
: $this->generateUrl('fos_user_profile_show');
81+
7982
$response = new RedirectResponse($url);
8083
}
8184

0 commit comments

Comments
 (0)