File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 23
23
<label for =" password" >Password:</label >
24
24
<input type =" password" id =" password" name =" _password" class =" form-control" />
25
25
</div >
26
+ <input type =" hidden" name =" _csrf_token" value =" {{ csrf_token(' authenticate' ) }}" />
26
27
<button type =" submit" class =" btn btn-primary" >
27
28
<i class =" fa fa-sign-in" ></i > Sign in
28
29
</button >
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ security:
29
29
# The name of the route where the login form lives
30
30
# When the user tries to access a protected page, they are redirected here
31
31
login_path : security_login_form
32
+ # Secure the login form against CSRF
33
+ # Reference: http://symfony.com/doc/current/cookbook/security/csrf_in_login_form.html
34
+ csrf_provider : security.csrf.token_manager
32
35
33
36
logout :
34
37
# The route name the user can go to in order to logout
You can’t perform that action at this time.
0 commit comments