refs #6434 feat: remove recursively fn
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
7f82243ce6
commit
add3a81032
|
@ -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,
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue