Commit 4846be00a2eb3f64be240c1e23068b21d5507e7d
1 parent
aaa12b90f5
Exists in
master
corregido error de redireccionamiento al verificar las credenciales
Showing
4 changed files
with
11 additions
and
5 deletions
Show diff stats
app/Resources/views/security/login.html.twig
app/config/security.yml
@@ -20,8 +20,8 @@ security: | @@ -20,8 +20,8 @@ security: | ||
20 | http_basic: ~ | 20 | http_basic: ~ |
21 | provider: our_db_provider | 21 | provider: our_db_provider |
22 | form_login: | 22 | form_login: |
23 | - login_path: /login | ||
24 | - check_path: /login | 23 | + login_path: /security/login |
24 | + check_path: /security/login | ||
25 | csrf_token_generator: security.csrf.token_manager | 25 | csrf_token_generator: security.csrf.token_manager |
26 | logout: | 26 | logout: |
27 | path: /logout | 27 | path: /logout |
src/AppBundle/Controller/PortalController.php
@@ -111,7 +111,7 @@ class PortalController extends Controller | @@ -111,7 +111,7 @@ class PortalController extends Controller | ||
111 | } | 111 | } |
112 | 112 | ||
113 | return $this->redirect( | 113 | return $this->redirect( |
114 | - sprintf('%s#%s', '/', 'adscripcion') | 114 | + sprintf('%s#%s', '', 'adscripcion') |
115 | ); | 115 | ); |
116 | //$request->getSession()->getFlashBag()->add('success', 'Your email has been sent! Thanks!'); | 116 | //$request->getSession()->getFlashBag()->add('success', 'Your email has been sent! Thanks!'); |
117 | } | 117 | } |
src/AppBundle/Controller/SecurityController.php
@@ -13,6 +13,12 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller; | @@ -13,6 +13,12 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller; | ||
13 | use Symfony\Component\HttpFoundation\Request; | 13 | use Symfony\Component\HttpFoundation\Request; |
14 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | 14 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
15 | 15 | ||
16 | +/** | ||
17 | + * Security controller. | ||
18 | + * | ||
19 | + * @Route("/security") | ||
20 | + */ | ||
21 | + | ||
16 | class SecurityController extends Controller | 22 | class SecurityController extends Controller |
17 | { | 23 | { |
18 | /** | 24 | /** |
@@ -39,7 +45,7 @@ class SecurityController extends Controller | @@ -39,7 +45,7 @@ class SecurityController extends Controller | ||
39 | } | 45 | } |
40 | 46 | ||
41 | /** | 47 | /** |
42 | - * @Route("/verificar", name="user_roles") | 48 | + * @Route("/verificar", name="verificar") |
43 | */ | 49 | */ |
44 | public function verificarAction(Request $request) | 50 | public function verificarAction(Request $request) |
45 | { | 51 | { |