]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/UserBundle/Controller/RegistrationController.php
Better random function
[github/wallabag/wallabag.git] / src / Wallabag / UserBundle / Controller / RegistrationController.php
CommitLineData
de3d716a
TC
1<?php
2
3namespace Wallabag\UserBundle\Controller;
4
5use FOS\UserBundle\Controller\RegistrationController as FOSRegistrationController;
6use Symfony\Component\HttpFoundation\Request;
7
8class RegistrationController extends FOSRegistrationController
9{
10 public function registerAction(Request $request)
11 {
12 if ($this->container->getParameter('wallabag_user.registration_enabled')) {
7149aa57 13 return parent::registerAction($request);
de3d716a 14 }
7149aa57 15
ee4442f4 16 return $this->redirectToRoute('fos_user_security_login', [], 301);
de3d716a
TC
17 }
18}