From 26dc51a5f0a9391dc01308eca3b42cad3063ec0d Mon Sep 17 00:00:00 2001 From: NFish Date: Mon, 30 Sep 2024 10:19:38 +0800 Subject: [PATCH] fix: Prioritize display of email password login --- web/app/signin/normalForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/signin/normalForm.tsx b/web/app/signin/normalForm.tsx index fe6550f8f1..797a3f22e9 100644 --- a/web/app/signin/normalForm.tsx +++ b/web/app/signin/normalForm.tsx @@ -45,7 +45,7 @@ const NormalForm = () => { const features = await getSystemFeatures() setSystemFeatures({ ...defaultSystemFeatures, ...features }) setShowORLine((features.enable_social_oauth_login || features.sso_enforced_for_signin) && (features.enable_email_code_login || features.enable_email_password_login)) - updateAuthType(features.enable_email_code_login ? 'code' : 'password') + updateAuthType(features.enable_email_password_login ? 'password' : 'code') if (isInviteLink) { const checkRes = await invitationCheck({ url: '/activate/check',