core&ui: add login methods to response body (#1165)

This commit is contained in:
Baoshuo authored and GitHub committed 2026-05-24 22:52:08 +08:00
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">