Skip to content

Commit

Permalink
minor symfony#20183 Use the same template across all examples (edpoul…
Browse files Browse the repository at this point in the history
…ain)

This PR was squashed before being merged into the 5.4 branch.

Discussion
----------

Use the same template across all examples

The documentation is using `security/request_login_link.html.twig` in 2 of the 3 code snippets. This makes sure the docs are using the same link everywhere.

Commits
-------

e8d3ad5 Use the same template across all examples
  • Loading branch information
xabbuh committed Sep 1, 2024
2 parents e7e60e1 + e8d3ad5 commit 83c9b28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/login_link.rst
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ number::
return $this->render('security/login_link_sent.html.twig');
}

return $this->render('security/login.html.twig');
return $this->render('security/request_login_link.html.twig');
}

// ...
Expand Down Expand Up @@ -664,7 +664,7 @@ user create this POST request (e.g. by clicking a button)::
<h2>Hi! You are about to login to ...</h2>

<!-- for instance, use a form with hidden fields to
create the POST request --->
create the POST request -->
<form action="{{ path('login_check') }}" method="POST">
<input type="hidden" name="expires" value="{{ expires }}">
<input type="hidden" name="user" value="{{ user }}">
Expand Down

0 comments on commit 83c9b28

Please sign in to comment.