From 0440888571838f6cb0b25850179b6e7214ed7126 Mon Sep 17 00:00:00 2001 From: Jake Howard <6527489+RealOrangeOne@users.noreply.github.com> Date: Mon, 19 May 2025 02:59:52 +0100 Subject: [PATCH] chore: hide "or" when password auth disabled (#4699) This makes the UI cleaner, instead only showing the "Sign in with ..." buttons. --- web/src/pages/SignIn.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) => (