Reimplement fallback email dialog
This commit is contained in:
@@ -396,7 +396,7 @@ async function verify(userId, password, identifier, options) {
|
||||
if (error) throw new BoxError(BoxError.CRYPTO_ERROR, error);
|
||||
|
||||
const derivedKeyHex = Buffer.from(derivedKey, 'binary').toString('hex');
|
||||
if (derivedKeyHex !== user.password) throw new BoxError(BoxError.INVALID_CREDENTIALS, 'Username and password does not match');
|
||||
if (derivedKeyHex !== user.password) throw new BoxError(BoxError.INVALID_CREDENTIALS, 'Wrong password');
|
||||
|
||||
localTotpCheck = user.twoFactorAuthenticationEnabled;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user