1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-17 08:43:21 +00:00

[Captcha] Implement for 2fa (#1827)

This commit is contained in:
Vincent Salucci
2022-03-07 12:39:38 -06:00
committed by GitHub
parent 79a76c4638
commit fcc94d85af
3 changed files with 30 additions and 5 deletions

View File

@@ -141,8 +141,12 @@ namespace Bit.Core.Services
}
public Task<AuthResult> LogInTwoFactorAsync(TwoFactorProviderType twoFactorProvider, string twoFactorToken,
bool? remember = null)
string captchaToken, bool? remember = null)
{
if (captchaToken != null)
{
CaptchaToken = captchaToken;
}
return LogInHelperAsync(Email, MasterPasswordHash, LocalMasterPasswordHash, Code, CodeVerifier, SsoRedirectUrl, _key,
twoFactorProvider, twoFactorToken, remember, CaptchaToken);
}