auth_select login form: minor improvements
This commit is contained in:
parent
02b8dd5d13
commit
0dec54ace0
3 changed files with 35 additions and 26 deletions
Binary file not shown.
|
|
@ -3,7 +3,7 @@ msgstr ""
|
||||||
|
|
||||||
"Project-Id-Version: 3.0.1\n"
|
"Project-Id-Version: 3.0.1\n"
|
||||||
"POT-Creation-Date: 2007-05-22 12:00 CET\n"
|
"POT-Creation-Date: 2007-05-22 12:00 CET\n"
|
||||||
"PO-Revision-Date: 2025-10-27 12:00 CET\n"
|
"PO-Revision-Date: 2026-01-23 12:00 CET\n"
|
||||||
"Last-Translator: Helmut Merz <helmutm@cy55.de>\n"
|
"Last-Translator: Helmut Merz <helmutm@cy55.de>\n"
|
||||||
"Language-Team: loops developers <helmutm@cy55.de>\n"
|
"Language-Team: loops developers <helmutm@cy55.de>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
|
|
@ -1472,8 +1472,14 @@ msgstr "E-Mail senden"
|
||||||
|
|
||||||
# authentication
|
# authentication
|
||||||
|
|
||||||
|
msgid "login-form"
|
||||||
|
msgstr "Anmeldung"
|
||||||
|
|
||||||
msgid "login-with-oidc"
|
msgid "login-with-oidc"
|
||||||
msgstr "Mit OpenID Connect (Zitadel) anmelden"
|
msgstr "Mit neuem Login-Verfahren anmelden"
|
||||||
|
|
||||||
|
msgid "login-with-legacy-method"
|
||||||
|
msgstr "Altes Login-Verfahren verwenden"
|
||||||
|
|
||||||
msgid "edit-external-user"
|
msgid "edit-external-user"
|
||||||
msgstr "Login-Einstellungen bearbeiten"
|
msgstr "Login-Einstellungen bearbeiten"
|
||||||
|
|
|
||||||
|
|
@ -21,17 +21,37 @@
|
||||||
tal:define="principal python:request.principal.id;
|
tal:define="principal python:request.principal.id;
|
||||||
baseUrl python:request.URL[-1];
|
baseUrl python:request.URL[-1];
|
||||||
camefrom python:request.get('camefrom') or request.URL[-1]">
|
camefrom python:request.get('camefrom') or request.URL[-1]">
|
||||||
|
<h4 i18n:domain="loops"
|
||||||
<p i18n:translate="" tal:condition="python: principal == 'zope.anybody'">
|
i18n:translate="login-form">Login</h4>
|
||||||
Please provide Login Information</p>
|
<div tal:condition="view/showSelection"
|
||||||
|
i18n:domain="loops">
|
||||||
|
<br>
|
||||||
|
<p><b i18n:translate="set-authentication-method">Set Authentication Method</b></p>
|
||||||
|
<span i18n:translate="authentication-method">Authentication Method</span>:
|
||||||
|
<select name="auth_method"
|
||||||
|
onchange="document.cookie=`loops_auth_method=${this.value}; path=/`"
|
||||||
|
tal:define="meth view/authMethod"
|
||||||
|
tal:attributes="value meth">
|
||||||
|
<option value="legacy" i18n:translate="authentication-method-legacy"
|
||||||
|
tal:attributes="selected python:meth=='legacy'">Legacy</option>
|
||||||
|
<option value="oidc" i18n:translate="authentication-method-oidc"
|
||||||
|
tal:attributes="selected python:meth=='oidc'">OIDC</option>
|
||||||
|
<option value="select" i18n:translate="authentication-method-select"
|
||||||
|
tal:attributes="selected python:meth=='select'">Selection</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<p><br></p>
|
||||||
<p i18n:translate="" tal:condition="python: principal != 'zope.anybody'">
|
<p i18n:translate="" tal:condition="python: principal != 'zope.anybody'">
|
||||||
You are not authorized to perform this action. However, you may login as a
|
You are not authorized to perform this action. However, you may login as a
|
||||||
different user who is authorized.</p>
|
different user who is authorized.</p>
|
||||||
<p i18n:domain="loops"
|
<div i18n:domain="loops"
|
||||||
tal:condition="view/oidc_allowed">
|
tal:condition="view/oidc_allowed">
|
||||||
<a tal:attributes="href string:$baseUrl/@@auth_login?camefrom=$camefrom"
|
<p>
|
||||||
i18n:translate="login-with-oidc">Login with OpenID Connect (Zitadel)</a>
|
<b><a tal:attributes="href string:$baseUrl/@@auth_login?camefrom=$camefrom"
|
||||||
</p>
|
i18n:translate="login-with-oidc">Login with OpenID Connect (Zitadel)</a></b>
|
||||||
|
</p>
|
||||||
|
<br><span i18n:translate="login-with-legacy-method">Use legacy login method</span>:
|
||||||
|
</div>
|
||||||
<form action="." method="post"
|
<form action="." method="post"
|
||||||
tal:attributes="action request/URL">
|
tal:attributes="action request/URL">
|
||||||
<div tal:omit-tag=""
|
<div tal:omit-tag=""
|
||||||
|
|
@ -58,23 +78,6 @@
|
||||||
<input type="hidden" name="camefrom"
|
<input type="hidden" name="camefrom"
|
||||||
tal:attributes="value request/camefrom | nothing">
|
tal:attributes="value request/camefrom | nothing">
|
||||||
</form>
|
</form>
|
||||||
<div tal:condition="view/showSelection"
|
|
||||||
i18n:domain="loops">
|
|
||||||
<br>
|
|
||||||
<p><b i18n:translate="set-authentication-method">Set Authentication Method</b></p>
|
|
||||||
<span i18n:translate="authentication-method">Authentication Method</span>:
|
|
||||||
<select name="auth_method"
|
|
||||||
onchange="document.cookie=`loops_auth_method=${this.value}; path=/`"
|
|
||||||
tal:define="meth view/authMethod"
|
|
||||||
tal:attributes="value meth">
|
|
||||||
<option value="legacy" i18n:translate="authentication-method-legacy"
|
|
||||||
tal:attributes="selected python:meth=='legacy'">Legacy</option>
|
|
||||||
<option value="oidc" i18n:translate="authentication-method-oidc"
|
|
||||||
tal:attributes="selected python:meth=='oidc'">OIDC</option>
|
|
||||||
<option value="select" i18n:translate="authentication-method-select"
|
|
||||||
tal:attributes="selected python:meth=='select'">Selection</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue