Merge pull request #2793 from akhilmhdh/fix/signup-allow-saml

feat: resolved saml failing when signup is disabled
This commit is contained in:
Maidul Islam
2024-11-26 09:39:52 -05:00
committed by GitHub
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,