aboutsummaryrefslogtreecommitdiffstats
path: root/packages/trpc/routers/users.ts
diff options
context:
space:
mode:
authorkamtschatka <simon.schatka@gmx.at>2024-10-12 15:27:21 +0200
committerGitHub <noreply@github.com>2024-10-12 14:27:21 +0100
commit9f87207d668fbe0a2039c63803128fbe5916f993 (patch)
tree08e1fff219e204258ebbf1732ddf22bff145714d /packages/trpc/routers/users.ts
parent02a5b35a30845268cfaa814bb045d0ec800dc538 (diff)
downloadkarakeep-9f87207d668fbe0a2039c63803128fbe5916f993.tar.zst
feature: Allow to disable default password login after SSO is configured. Fixes #406 (#502)
* [Feature Request] Allow to disable default password log in after SSO is configured #406 changed the flag to also disallow logging in via password The extensions will also no longer be allowed to log in via username/password then * [Feature Request] Allow to disable default password log in after SSO is configured #406 added the error message for OAuth
Diffstat (limited to 'packages/trpc/routers/users.ts')
-rw-r--r--packages/trpc/routers/users.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/trpc/routers/users.ts b/packages/trpc/routers/users.ts
index 736e7e2f..87d0fa2d 100644
--- a/packages/trpc/routers/users.ts
+++ b/packages/trpc/routers/users.ts
@@ -31,9 +31,9 @@ export const usersAppRouter = router({
.mutation(async ({ input, ctx }) => {
if (
serverConfig.auth.disableSignups ||
- serverConfig.auth.disablePasswordSignups
+ serverConfig.auth.disablePasswordAuth
) {
- const errorMessage = serverConfig.auth.disablePasswordSignups
+ const errorMessage = serverConfig.auth.disablePasswordAuth
? "Local Signups are disabled in the server config. Use OAuth instead!"
: "Signups are disabled in server config";
throw new TRPCError({