mirror of
https://github.com/bitwarden/mobile
synced 2026-01-20 09:23:50 +00:00
[PM-5731] fix: tests a bit, needed some additional "arrange" steps
This commit is contained in:
@@ -60,6 +60,24 @@ namespace Bit.Core.Services
|
||||
|
||||
throw new NotAllowedError();
|
||||
}
|
||||
|
||||
if (!userVerified && (assertionParams.RequireUserVerification || selectedCipher.Reprompt != CipherRepromptType.None)) {
|
||||
_logService.Info(
|
||||
"[Fido2Authenticator] Aborting because user verification was unsuccessful."
|
||||
);
|
||||
|
||||
throw new NotAllowedError();
|
||||
}
|
||||
|
||||
// if (
|
||||
// !userVerified &&
|
||||
// (params.requireUserVerification || selectedCipher.reprompt !== CipherRepromptType.None)
|
||||
// ) {
|
||||
// this.logService?.warning(
|
||||
// `[Fido2Authenticator] Aborting because user verification was unsuccessful.`,
|
||||
// );
|
||||
// throw new Fido2AuthenticatorError(Fido2AuthenticatorErrorCode.NotAllowed);
|
||||
// }
|
||||
|
||||
// TODO: IMPLEMENT this
|
||||
return new Fido2AuthenticatorGetAssertionResult
|
||||
|
||||
Reference in New Issue
Block a user