From de3d716ae4e8ca98dabdcb2ec9c18219e05856f7 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sat, 2 Jul 2016 14:35:52 +0200 Subject: Add option to disable registration --- .../UserBundle/Controller/RegistrationController.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/Wallabag/UserBundle/Controller/RegistrationController.php (limited to 'src/Wallabag/UserBundle/Controller/RegistrationController.php') diff --git a/src/Wallabag/UserBundle/Controller/RegistrationController.php b/src/Wallabag/UserBundle/Controller/RegistrationController.php new file mode 100644 index 00000000..bba27cfb --- /dev/null +++ b/src/Wallabag/UserBundle/Controller/RegistrationController.php @@ -0,0 +1,20 @@ +container->getParameter('wallabag_user.registration_enabled')) { + parent::registerAction($request); + } + else + { + return $this->redirectToRoute('fos_user_security_login', array(), 301); + } + } +} -- cgit v1.2.3