ui: fix login dialog

This commit is contained in:
undefined committed 2026-06-26 21:59:15 +08:00
1 parent ffcacb4cb8
commit f73326fb59
2 files changed
+3 -3

No files matched your search

@@ -40,9 +40,9 @@
<input type="submit" value="{{ _('Login') }}" name="login_submit" class="expanded rounded primary button">
</div></div>
{% endif %}
{%- for v in loginMethods -%}
{%- for v in loginMethods|default(handler.loginMethods) -%}
<div class="row"><div class="columns">
<a href="{{ url('user_oauth', type=v.id, query={redirect: handler.request.url}) }}" class="expanded rounded button">{{ _(v.text) }}</a>
<a href="{{ url('user_oauth', type=v.id, query={redirect: handler.request.path}) }}" class="expanded rounded button">{{ _(v.text) }}</a>
</div></div>
{%- endfor -%}
<div class="row"><div class="columns">
@@ -30,7 +30,7 @@
</div>
</div></div>
{% endif %}
{%- for v in loginMethods -%}
{%- for v in loginMethods|default(handler.loginMethods) -%}
<div class="row"><div class="columns">
<a href="{{ url('user_oauth', type=v.id, query={redirect: redirect}) }}" class="expanded rounded button inverse">{{ _(v.text) }}</a>
</div></div>