Skip to content

Commit f73326f

Browse files
committed
ui: fix login dialog
1 parent ffcacb4 commit f73326f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/ui-default/templates/partials/login_dialog.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ <h1 class="dialog--signin__title">{{ _('SIGN IN') }}</h1>
4040
<input type="submit" value="{{ _('Login') }}" name="login_submit" class="expanded rounded primary button">
4141
</div></div>
4242
{% endif %}
43-
{%- for v in loginMethods -%}
43+
{%- for v in loginMethods|default(handler.loginMethods) -%}
4444
<div class="row"><div class="columns">
45-
<a href="{{ url('user_oauth', type=v.id, query={redirect: handler.request.url}) }}" class="expanded rounded button">{{ _(v.text) }}</a>
45+
<a href="{{ url('user_oauth', type=v.id, query={redirect: handler.request.path}) }}" class="expanded rounded button">{{ _(v.text) }}</a>
4646
</div></div>
4747
{%- endfor -%}
4848
<div class="row"><div class="columns">

packages/ui-default/templates/user_login.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h1>{{ _('Login') }}</h1>
3030
</div>
3131
</div></div>
3232
{% endif %}
33-
{%- for v in loginMethods -%}
33+
{%- for v in loginMethods|default(handler.loginMethods) -%}
3434
<div class="row"><div class="columns">
3535
<a href="{{ url('user_oauth', type=v.id, query={redirect: redirect}) }}" class="expanded rounded button inverse">{{ _(v.text) }}</a>
3636
</div></div>

0 commit comments

Comments
 (0)