diff --git a/web/src/pages/SignIn.tsx b/web/src/pages/SignIn.tsx index ca5ff437e..d00a68dca 100644 --- a/web/src/pages/SignIn.tsx +++ b/web/src/pages/SignIn.tsx @@ -65,9 +65,9 @@ const SignIn = () => { {!workspaceGeneralSetting.disallowPasswordAuth ? ( - ) : ( + ) : (identityProviderList.length == 0 && (

Password auth is not allowed.

- )} + ))} {!workspaceGeneralSetting.disallowUserRegistration && !workspaceGeneralSetting.disallowPasswordAuth && (

{t("auth.sign-up-tip")} @@ -78,7 +78,7 @@ const SignIn = () => { )} {identityProviderList.length > 0 && ( <> - {t("common.or")} + {!workspaceGeneralSetting.disallowPasswordAuth && {t("common.or")}}

{identityProviderList.map((identityProvider) => (