From 4a3775a9ac4242318dd7b91f0012cd756edcad7b Mon Sep 17 00:00:00 2001
From: kamtschatka <simon.schatka@gmx.at>
Date: Sun, 6 Oct 2024 10:06:19 +0200
Subject: feature: Allow disabling password signups (#413)

* [Feature Request] Allow to disable default password log in after SSO is configured #406
Added the DISABLE_LOCAL_SIGNUPS that can be used to force OAuth signups only

* rename local signups to password signups

---------

Co-authored-by: MohamedBassem <me@mbassem.com>
---
 apps/web/components/signin/CredentialsForm.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'apps/web/components/signin/CredentialsForm.tsx')

diff --git a/apps/web/components/signin/CredentialsForm.tsx b/apps/web/components/signin/CredentialsForm.tsx
index a505f699..a35b768f 100644
--- a/apps/web/components/signin/CredentialsForm.tsx
+++ b/apps/web/components/signin/CredentialsForm.tsx
@@ -233,7 +233,8 @@ export default function CredentialsForm() {
         <SignIn />
       </TabsContent>
       <TabsContent value="signup">
-        {clientConfig.auth.disableSignups ? (
+        {clientConfig.auth.disableSignups ||
+        clientConfig.auth.disablePasswordSignups ? (
           <p className="text-center">Signups are currently disabled.</p>
         ) : (
           <SignUp />
-- 
cgit v1.2.3-70-g09d2

