refs #6434 feat: remove recursively fn
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2023-11-15 09:29:26 +01:00
parent 7f82243ce6
commit add3a81032
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,9 @@ module.exports = Self => {
if (vnUser.twoFactor)
throw new ForbiddenError(null, 'REQUIRES_2FA');
const validateLogin = await Self.validateLogin(user, password);
await Self.app.models.SignInLog.create({
id: validateLogin.token,
userFk: vnUser.id,

View File

@ -132,8 +132,6 @@ module.exports = function(Self) {
throw new UserError('Try again');
}
const userCheck = await Self.app.models.VnUser.findOne({where: {name: user}});
if (userToken.id != userCheck.id) await Self.validateLogin(user, password);
try {
await Self.app.models.Account.sync(userToken.name, password);
} catch (err) {