1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-20 09:23:50 +00:00

[PM-2297] Add methods to DeviceTrustCryptoService update decryption options model

This commit is contained in:
André Bispo
2023-07-17 15:30:15 +01:00
parent e9ac1e3b5b
commit 9b6b2c005e
4 changed files with 13 additions and 12 deletions

View File

@@ -111,15 +111,7 @@ namespace Bit.App.Pages
var decryptOptions = await _stateService.GetAccountDecryptionOptions();
RequestAdminApprovalEnabled = decryptOptions?.TrustedDeviceOption?.HasAdminApproval ?? false;
ApproveWithMasterPasswordEnabled = decryptOptions?.HasMasterPassword ?? false;
}
catch (Exception ex)
{
HandleException(ex);
}
try
{
ApproveWithMyOtherDeviceEnabled = await _apiService.GetDevicesExistenceByTypes(DeviceTypeExtensions.GetDesktopAndMobileTypes().ToArray());
ApproveWithMyOtherDeviceEnabled = decryptOptions?.TrustedDeviceOption?.HasLoginApprovingDevice ?? false;
}
catch (Exception ex)
{