diff --git a/src/App/Pages/Accounts/LoginApproveDevicePage.xaml.cs b/src/App/Pages/Accounts/LoginApproveDevicePage.xaml.cs index 7bea65743..9b80b18a5 100644 --- a/src/App/Pages/Accounts/LoginApproveDevicePage.xaml.cs +++ b/src/App/Pages/Accounts/LoginApproveDevicePage.xaml.cs @@ -28,7 +28,8 @@ namespace Bit.App.Pages _appOptions = appOptions; } - protected override void OnAppearing(){ + protected override void OnAppearing() + { _vm.InitAsync(); } diff --git a/src/App/Pages/Accounts/LoginApproveDeviceViewModel.cs b/src/App/Pages/Accounts/LoginApproveDeviceViewModel.cs index ec68cf71b..1838d1ce0 100644 --- a/src/App/Pages/Accounts/LoginApproveDeviceViewModel.cs +++ b/src/App/Pages/Accounts/LoginApproveDeviceViewModel.cs @@ -10,8 +10,8 @@ using Bit.Core.Models.Request; using Bit.Core.Services; using Bit.Core.Utilities; using Xamarin.CommunityToolkit.ObjectModel; -using Xamarin.Forms; using Xamarin.Essentials; +using Xamarin.Forms; namespace Bit.App.Pages { @@ -39,7 +39,7 @@ namespace Bit.App.Pages public LoginApproveDeviceViewModel() { - _stateService = ServiceContainer.Resolve(); + _stateService = ServiceContainer.Resolve(); _apiService = ServiceContainer.Resolve(); _deviceTrustCryptoService = ServiceContainer.Resolve(); diff --git a/src/App/Pages/Accounts/LoginPasswordlessRequestViewModel.cs b/src/App/Pages/Accounts/LoginPasswordlessRequestViewModel.cs index 9529ece39..65726cee5 100644 --- a/src/App/Pages/Accounts/LoginPasswordlessRequestViewModel.cs +++ b/src/App/Pages/Accounts/LoginPasswordlessRequestViewModel.cs @@ -85,7 +85,8 @@ namespace Bit.App.Pages { get { - switch (_authRequestType) { + switch (_authRequestType) + { case AuthRequestType.AuthenticateAndUnlock: return AppResources.LogInInitiated; case AuthRequestType.AdminApproval: diff --git a/src/Core/Services/DeviceTrustCryptoService.cs b/src/Core/Services/DeviceTrustCryptoService.cs index 4aa298949..a7550e657 100644 --- a/src/Core/Services/DeviceTrustCryptoService.cs +++ b/src/Core/Services/DeviceTrustCryptoService.cs @@ -43,7 +43,7 @@ namespace Bit.Core.Services public async Task TrustDeviceAsync() { - if(!await GetUserTrustDeviceChoiceForDecryptionAsync()) + if (!await GetUserTrustDeviceChoiceForDecryptionAsync()) { return null; }