feat: resolved saml failing when signup is disabled

This commit is contained in:
=
2024-11-25 22:22:54 +05:30
parent 1a084d8fcf
commit f034adba76
2 changed files with 10 additions and 8 deletions
@@ -119,13 +119,6 @@ export const registerSignupRouter = async (server: FastifyZodProvider) => {
if (!userAgent) throw new Error("user agent header is required");
const appCfg = getConfig();
const serverCfg = await getServerCfg();
if (!serverCfg.allowSignUp) {
throw new ForbiddenRequestError({
message: "Signup's are disabled"
});
}
const { user, accessToken, refreshToken, organizationId } =
await server.services.signup.completeEmailAccountSignup({
...req.body,