mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 14:27:59 +00:00
misc: moved user lock reset after backup success
This commit is contained in:
@@ -138,11 +138,6 @@ export const authPaswordServiceFactory = ({
|
|||||||
code
|
code
|
||||||
});
|
});
|
||||||
|
|
||||||
await userDAL.updateById(user.id, {
|
|
||||||
isLocked: false,
|
|
||||||
temporaryLockDateEnd: null
|
|
||||||
});
|
|
||||||
|
|
||||||
const token = jwt.sign(
|
const token = jwt.sign(
|
||||||
{
|
{
|
||||||
authTokenType: AuthTokenType.SIGNUP_TOKEN,
|
authTokenType: AuthTokenType.SIGNUP_TOKEN,
|
||||||
@@ -179,6 +174,12 @@ export const authPaswordServiceFactory = ({
|
|||||||
salt,
|
salt,
|
||||||
verifier
|
verifier
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await userDAL.updateById(userId, {
|
||||||
|
isLocked: false,
|
||||||
|
temporaryLockDateEnd: null,
|
||||||
|
consecutiveFailedMfaAttempts: 0
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user