add expires parameter to auth method selection cookie

This commit is contained in:
Helmut Merz 2026-01-27 08:32:45 +01:00
parent 0dec54ace0
commit 5676194e56

View file

@ -29,7 +29,7 @@
<p><b i18n:translate="set-authentication-method">Set Authentication Method</b></p> <p><b i18n:translate="set-authentication-method">Set Authentication Method</b></p>
<span i18n:translate="authentication-method">Authentication Method</span>: <span i18n:translate="authentication-method">Authentication Method</span>:
<select name="auth_method" <select name="auth_method"
onchange="document.cookie=`loops_auth_method=${this.value}; path=/`" onchange="document.cookie=`loops_auth_method=${this.value}; path=/; expires=Sun, 31 Jan 2027 12:00:00 UTC`"
tal:define="meth view/authMethod" tal:define="meth view/authMethod"
tal:attributes="value meth"> tal:attributes="value meth">
<option value="legacy" i18n:translate="authentication-method-legacy" <option value="legacy" i18n:translate="authentication-method-legacy"