Skip to content

Commit

Permalink
Fix EZP-24476: Refactor CSRF token generation in Security login form
Browse files Browse the repository at this point in the history
  • Loading branch information
lolautruche committed Jun 25, 2015
1 parent 44c0cde commit 3b10ace
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/Security/login.html.twig
Expand Up @@ -27,7 +27,7 @@
</div>

<div class="buttonblock">
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
<input type="hidden" name="_csrf_token" value="{{ csrf_token("authenticate") }}" />
<input class="defaultbutton" type="submit" name="LoginButton" value="{{ "Login"|trans }}" />
</div>

Expand Down
1 change: 1 addition & 0 deletions Resources/views/page_header_links.html.twig
Expand Up @@ -34,6 +34,7 @@
</div>
</fieldset>
<input type="hidden" name="_target_path" value="" />
<input type="hidden" name="_csrf_token" value="{{ csrf_token("authenticate") }}" />
</form>
</li>
{% endif %}
Expand Down

0 comments on commit 3b10ace

Please sign in to comment.