From 721c7ab368698b198fec40bea8670dec51759e51 Mon Sep 17 00:00:00 2001 From: kamtschatka Date: Tue, 8 Oct 2024 08:27:45 +0200 Subject: [PATCH] [Feature Request] Allow to disable default password log in after SSO is configured #406 added the error message for OAuth --- apps/web/components/signin/CredentialsForm.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/web/components/signin/CredentialsForm.tsx b/apps/web/components/signin/CredentialsForm.tsx index 04d8e1a8..313dc7c5 100644 --- a/apps/web/components/signin/CredentialsForm.tsx +++ b/apps/web/components/signin/CredentialsForm.tsx @@ -48,9 +48,14 @@ function SignIn() { if (clientConfig.auth.disablePasswordAuth) { return ( -

- Password authentication is currently disabled. -

+ <> + {signinError && ( +

{signinError}

+ )} +

+ Password authentication is currently disabled. +

+ ); }