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