diff options
Diffstat (limited to 'src/Wallabag/UserBundle/Controller/RegistrationController.php')
-rw-r--r-- | src/Wallabag/UserBundle/Controller/RegistrationController.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Wallabag/UserBundle/Controller/RegistrationController.php b/src/Wallabag/UserBundle/Controller/RegistrationController.php index bba27cfb..d6d0fda1 100644 --- a/src/Wallabag/UserBundle/Controller/RegistrationController.php +++ b/src/Wallabag/UserBundle/Controller/RegistrationController.php | |||
@@ -10,11 +10,9 @@ class RegistrationController extends FOSRegistrationController | |||
10 | public function registerAction(Request $request) | 10 | public function registerAction(Request $request) |
11 | { | 11 | { |
12 | if ($this->container->getParameter('wallabag_user.registration_enabled')) { | 12 | if ($this->container->getParameter('wallabag_user.registration_enabled')) { |
13 | parent::registerAction($request); | 13 | return parent::registerAction($request); |
14 | } | ||
15 | else | ||
16 | { | ||
17 | return $this->redirectToRoute('fos_user_security_login', array(), 301); | ||
18 | } | 14 | } |
15 | |||
16 | return $this->redirectToRoute('fos_user_security_login', array(), 301); | ||
19 | } | 17 | } |
20 | } | 18 | } |