mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix: Prioritize display of email password login
This commit is contained in:
parent
8e33929c78
commit
26dc51a5f0
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user