Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
remove invite only logic from controller
Maidul Islam1fea2f11217a
diff --git a/backend/src/controllers/v1/signupController.ts b/backend/src/controllers/v1/signupController.tsindex 065e0c9c53..6422808ab8 100644--- a/backend/src/controllers/v1/signupController.ts+++ b/backend/src/controllers/v1/signupController.ts@@ -2,7 +2,6 @@ import { Request, Response } from "express";import { AuthMethod, User } from "../../models";import { checkEmailVerification, sendEmailVerification } from "../../helpers/signup";import { createToken } from "../../helpers/auth";-import { BadRequestError } from "../../utils/errors";import {getAuthSecret,getJwtSignupLifetime,@@ -67,14 +66,6 @@ export const verifyEmailSignup = async (req: Request, res: Response) => {});}- // Only one user can create an account without being invited. The rest need to be invited in order to make an account- const userCount = await User.countDocuments({});- if (userCount != 0) {- throw BadRequestError({- message: "New user sign ups are not allowed at this time. You must be invited to sign up."- });- }-// verify emailif (await getSmtpConfigured()) {await checkEmailVerification({