|
|
|
@ -65,9 +65,9 @@ const SignIn = () => {
|
|
|
|
|
</div>
|
|
|
|
|
{!workspaceGeneralSetting.disallowPasswordAuth ? (
|
|
|
|
|
<PasswordSignInForm />
|
|
|
|
|
) : (
|
|
|
|
|
) : (identityProviderList.length == 0 && (
|
|
|
|
|
<p className="w-full text-2xl mt-2 dark:text-gray-500">Password auth is not allowed.</p>
|
|
|
|
|
)}
|
|
|
|
|
))}
|
|
|
|
|
{!workspaceGeneralSetting.disallowUserRegistration && !workspaceGeneralSetting.disallowPasswordAuth && (
|
|
|
|
|
<p className="w-full mt-4 text-sm">
|
|
|
|
|
<span className="dark:text-gray-500">{t("auth.sign-up-tip")}</span>
|
|
|
|
@ -78,7 +78,7 @@ const SignIn = () => {
|
|
|
|
|
)}
|
|
|
|
|
{identityProviderList.length > 0 && (
|
|
|
|
|
<>
|
|
|
|
|
<Divider className="!my-4">{t("common.or")}</Divider>
|
|
|
|
|
{!workspaceGeneralSetting.disallowPasswordAuth && <Divider className="!my-4">{t("common.or")}</Divider>}
|
|
|
|
|
<div className="w-full flex flex-col space-y-2">
|
|
|
|
|
{identityProviderList.map((identityProvider) => (
|
|
|
|
|
<Button
|
|
|
|
|