Added XF CSRF compatibility

This commit is contained in:
2026-05-25 12:23:10 +02:00
parent 250509055b
commit b361f07954
5 changed files with 27 additions and 3 deletions

View File

@@ -34,7 +34,7 @@
{{ \Auth::user()?->username ?? "Guest" }}
</span>
<span class="user_role">
<a href="{{ \Auth::guest() ? xfRoute('login') : xfRoute('logout') }}">
<a href="{{ \Auth::guest() ? xfRoute('login') : xfRoute('logout') . '?t=' . xfCsrfToken() }}">
{{ \Auth::guest() ? 'Login' : 'Logout' }}
</a>
</span>