prom-client: fix warning

This commit is contained in:
undefined committed 2022-10-05 20:22:16 +08:00
1 parent c394378dba
commit d79643024a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ class UserLoginHandler extends Handler {
this.limitRate('user_login', 60, 5),
oplog.log(this, 'user.login', { redirect }),
]);
// if (udoc._tfa && !verifyToken(udoc._tfa, tfa)) throw new InvalidTokenError('2FA token invalid.');
if (udoc._tfa && !verifyToken(udoc._tfa, tfa)) throw new InvalidTokenError('2FA token invalid.');
udoc.checkPassword(password);
await user.setById(udoc._id, { loginat: new Date(), loginip: this.request.ip });
if (!udoc.hasPriv(PRIV.PRIV_USER_PROFILE)) throw new BlacklistedError(uname);