Reimplement fallback email dialog

This commit is contained in:
Johannes Zellner
2025-06-11 10:22:09 +02:00
parent 315210fe29
commit af75060001
5 changed files with 103 additions and 24 deletions

View File

@@ -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;
}