mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: add login methods to response body (#1165)
This commit is contained in:
1 parent
bbd7fbc852
commit
ce14b98184
5 files changed
+9
-5
No files matched your search
@@ -70,7 +70,7 @@
|
||||
<form method="post">
|
||||
<input type="hidden" name="operation" value="unlink_account">
|
||||
{%- for relation in relations -%}{% if relation.platform != 'mail' %}
|
||||
{% set platform = handler.loginMethods.find(eval("r => r.id === '" + relation.platform + "'")) %}
|
||||
{% set platform = loginMethods.find(eval("r => r.id === '" + relation.platform + "'")) %}
|
||||
<li class="platform-list__item">
|
||||
<div class="media">
|
||||
{% if platform.icon %}
|
||||
@@ -88,7 +88,7 @@
|
||||
</form>
|
||||
<form method="post">
|
||||
<input type="hidden" name="operation" value="link_account">
|
||||
{%- for method in handler.loginMethods -%}
|
||||
{%- for method in loginMethods -%}
|
||||
{%- if not relations.some(eval("r => r.platform === '" + method.id + "'")) -%}
|
||||
<li class="platform-list__item">
|
||||
<div class="media">
|
||||
|
||||
Reference in new issue
Block a user