mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 18:27:36 +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();
|
const serverCfg = await getServerCfg();
|
||||||
if (!serverCfg.allowSignUp) {
|
if (!serverCfg.allowSignUp) {
|
||||||
throw new BadRequestError({
|
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();
|
const serverCfg = await getServerCfg();
|
||||||
if (!serverCfg.allowSignUp) {
|
if (!serverCfg.allowSignUp) {
|
||||||
throw new BadRequestError({
|
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();
|
const serverCfg = await getServerCfg();
|
||||||
if (!serverCfg.allowSignUp) {
|
if (!serverCfg.allowSignUp) {
|
||||||
throw new BadRequestError({
|
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) {
|
if (!user) {
|
||||||
// Create a new user based on oAuth
|
// 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) {
|
if (serverCfg?.allowedSignUpDomain) {
|
||||||
const domain = email.split("@")[1];
|
const domain = email.split("@")[1];
|
||||||
@@ -283,7 +283,6 @@ export const authLoginServiceFactory = ({ userDAL, tokenService, smtpService }:
|
|||||||
}
|
}
|
||||||
|
|
||||||
user = await userDAL.create({ email, firstName, lastName, authMethods: [authMethod], isGhost: false });
|
user = await userDAL.create({ email, firstName, lastName, authMethods: [authMethod], isGhost: false });
|
||||||
|
|
||||||
}
|
}
|
||||||
const isLinkingRequired = !user?.authMethods?.includes(authMethod);
|
const isLinkingRequired = !user?.authMethods?.includes(authMethod);
|
||||||
const isUserCompleted = user.isAccepted;
|
const isUserCompleted = user.isAccepted;
|
||||||
|
|||||||
Reference in New Issue
Block a user