fix: prevent stale htmx cache on login potentially causing csrf issues
addresses #869dd1fch
This commit is contained in:
@@ -9,9 +9,8 @@ framework:
|
|||||||
# Remove or comment this section to explicitly disable session support.
|
# Remove or comment this section to explicitly disable session support.
|
||||||
session:
|
session:
|
||||||
handler_id: null
|
handler_id: null
|
||||||
cookie_secure: auto
|
cookie_secure: true
|
||||||
# cookie_samesite: lax
|
cookie_samesite: lax
|
||||||
cookie_samesite: none # this is to make login work in staging environment. to be removed when going live!
|
|
||||||
|
|
||||||
#esi: true
|
#esi: true
|
||||||
#fragments: true
|
#fragments: true
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
{% include '_partials/_alert.html.twig' with { 'level': 'error', messages: [ error.messageKey|trans(error.messageData, 'security') ] } %}
|
{% include '_partials/_alert.html.twig' with { 'level': 'error', messages: [ error.messageKey|trans(error.messageData, 'security') ] } %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<form action="{{ path('app_login') }}" method="post">
|
<form action="{{ path('app_login') }}" method="post" hx-history="false">
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<label for="username" class="mb-1 font-semibold text-white">
|
<label for="username" class="mb-1 font-semibold text-white">
|
||||||
E-Mail:
|
E-Mail:
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
{% include '_partials/_alert.html.twig' with { 'level': 'error', messages: [ error.messageKey|trans(error.messageData, 'security') ] } %}
|
{% include '_partials/_alert.html.twig' with { 'level': 'error', messages: [ error.messageKey|trans(error.messageData, 'security') ] } %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="pb-4">
|
<div class="pb-4">
|
||||||
<form action="{{ path('app_login') }}" method="post">
|
<form action="{{ path('app_login') }}" method="post" hx-history="false">
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<label for="username" class="mb-1 font-semibold text-white">
|
<label for="username" class="mb-1 font-semibold text-white">
|
||||||
E-Mail:
|
E-Mail:
|
||||||
|
|||||||
Reference in New Issue
Block a user