chore(backend): Remove lint
This commit is contained in:
parent
5422abdf86
commit
4419e0e535
1 changed files with 2 additions and 2 deletions
|
@ -1519,7 +1519,7 @@ UserModel.prototype.guardedMfaUpdate = async function ({ body, user, ip }) {
|
|||
this.clear.data.mfaScratchCodes
|
||||
)
|
||||
let result, mfaScratchCodes
|
||||
if (Array.isArray(check)) [result, mfaScratchCodes] = check
|
||||
if (Array.isArray(check)) [result] = check
|
||||
else result = check
|
||||
if (result) {
|
||||
/*
|
||||
|
@ -1557,7 +1557,7 @@ UserModel.prototype.guardedMfaUpdate = async function ({ body, user, ip }) {
|
|||
*/
|
||||
const check = await this.mfa.verify(body.token, this.clear.mfaSecret, false)
|
||||
let result, mfaScratchCodes
|
||||
if (Array.isArray(check)) [result, mfaScratchCodes] = check
|
||||
if (Array.isArray(check)) [result] = check
|
||||
else result = check
|
||||
if (body.secret === this.clear.mfaSecret && result) {
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue