Commit 0f31232bc70f60786d33fdf553b678b9799ef411
1 parent
93a9ea69d0
Exists in
master
Se creó la ruta de redirección de acuerdo al ROLE_DOCENTE
Showing
1 changed file
with
4 additions
and
5 deletions
Show diff stats
app/Resources/views/security/login.html.twig
... | ... | @@ -16,11 +16,10 @@ |
16 | 16 | value="{{ csrf_token('authenticate') }}" |
17 | 17 | > |
18 | 18 | |
19 | - {# | |
20 | - If you want to control the URL the user | |
21 | - is redirected to on success (more details below) | |
22 | - <input type="hidden" name="_target_path" value="/account" /> | |
23 | - #} | |
19 | + {% if is_granted('ROLE_DOCENTE') %} | |
20 | + <input type="hidden" name="_target_path" value="{{ path('user_registration') }}" /> | |
21 | + {% endif %} | |
22 | + | |
24 | 23 | |
25 | 24 | <button type="submit">login</button> |
26 | 25 | </form> | ... | ... |