We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d28d2b0 commit abe497fCopy full SHA for abe497f
Controller/RegistrationController.php
@@ -75,7 +75,10 @@ public function registerAction(Request $request)
75
$userManager->updateUser($user);
76
77
if (null === $response = $event->getResponse()) {
78
- $url = $this->generateUrl('fos_user_registration_confirmed');
+ $url = $this->getParameter('fos_user.registration.confirmation.enabled')
79
+ ? $this->generateUrl('fos_user_registration_confirmed')
80
+ : $this->generateUrl('fos_user_profile_show');
81
+
82
$response = new RedirectResponse($url);
83
}
84
0 commit comments