fix: Prioritize display of email password login

This commit is contained in:
NFish 2024-09-30 10:19:38 +08:00
parent 8e33929c78
commit 26dc51a5f0

View File

@ -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',