mirror of
https://github.com/Infisical/infisical.git
synced 2025-03-25 14:05:03 +00:00
small typos and update migration timestamp
This commit is contained in:
@ -30,7 +30,7 @@ export const registerSignupRouter = async (server: FastifyZodProvider) => {
|
||||
const serverCfg = await getServerCfg();
|
||||
if (!serverCfg.allowSignUp) {
|
||||
throw new BadRequestError({
|
||||
message: "Sign up is disabled!"
|
||||
message: "Sign up is disabled"
|
||||
});
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ export const registerSignupRouter = async (server: FastifyZodProvider) => {
|
||||
const serverCfg = await getServerCfg();
|
||||
if (!serverCfg.allowSignUp) {
|
||||
throw new BadRequestError({
|
||||
message: "Sign up is disabled!"
|
||||
message: "Sign up is disabled"
|
||||
});
|
||||
}
|
||||
|
||||
@ -120,7 +120,7 @@ export const registerSignupRouter = async (server: FastifyZodProvider) => {
|
||||
const serverCfg = await getServerCfg();
|
||||
if (!serverCfg.allowSignUp) {
|
||||
throw new BadRequestError({
|
||||
message: "Sign up is disabled!"
|
||||
message: "Sign up is disabled"
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -270,7 +270,7 @@ export const authLoginServiceFactory = ({ userDAL, tokenService, smtpService }:
|
||||
|
||||
if (!user) {
|
||||
// Create a new user based on oAuth
|
||||
if (!serverCfg?.allowSignUp) throw new BadRequestError({ message: "Sign Up disabled", name: "Oauth 2 login" });
|
||||
if (!serverCfg?.allowSignUp) throw new BadRequestError({ message: "Sign up disabled", name: "Oauth 2 login" });
|
||||
|
||||
if (serverCfg?.allowedSignUpDomain) {
|
||||
const domain = email.split("@")[1];
|
||||
@ -281,9 +281,8 @@ export const authLoginServiceFactory = ({ userDAL, tokenService, smtpService }:
|
||||
name: "Oauth 2 login"
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
user = await userDAL.create({ email, firstName, lastName, authMethods: [authMethod], isGhost: false });
|
||||
|
||||
}
|
||||
const isLinkingRequired = !user?.authMethods?.includes(authMethod);
|
||||
const isUserCompleted = user.isAccepted;
|
||||
|
Reference in New Issue
Block a user