Skip to content

Commit eba3045

Browse files
committed
minor #1735 Use logout_path() in login form templates (PierreCapel)
This PR was merged into the 1.x branch. Discussion ---------- Use logout_path() in login form templates Commits ------- 8558674 feat(login form): use logout_path()
2 parents efd3532 + 8558674 commit eba3045

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

templates/authenticator/login_form.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<?php if ($logout_setup): ?>
1212
{% if app.user %}
1313
<div class="mb-3">
14-
You are logged in as {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">Logout</a>
14+
You are logged in as {{ app.user.userIdentifier }}, <a href="{{ logout_path() }}">Logout</a>
1515
</div>
1616
{% endif %}
1717
<?php endif; ?>

templates/security/formLogin/login_form.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<?php if ($logout_setup): ?>
1212
{% if app.user %}
1313
<div class="mb-3">
14-
You are logged in as {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">Logout</a>
14+
You are logged in as {{ app.user.userIdentifier }}, <a href="{{ logout_path() }}">Logout</a>
1515
</div>
1616
{% endif %}
1717

tests/fixtures/security/make-form-login/expected/login.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
{% if app.user %}
1212
<div class="mb-3">
13-
You are logged in as {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">Logout</a>
13+
You are logged in as {{ app.user.userIdentifier }}, <a href="{{ logout_path() }}">Logout</a>
1414
</div>
1515
{% endif %}
1616

0 commit comments

Comments
 (0)