diff --git a/src/App/Pages/Accounts/LoginPageViewModel.cs b/src/App/Pages/Accounts/LoginPageViewModel.cs index 056903911..a765a18bb 100644 --- a/src/App/Pages/Accounts/LoginPageViewModel.cs +++ b/src/App/Pages/Accounts/LoginPageViewModel.cs @@ -13,11 +13,13 @@ namespace Bit.App.Pages { private readonly IDeviceActionService _deviceActionService; private readonly IAuthService _authService; + private readonly ISyncService _syncService; public LoginPageViewModel() { _deviceActionService = ServiceContainer.Resolve("deviceActionService"); _authService = ServiceContainer.Resolve("authService"); + _syncService = ServiceContainer.Resolve("syncService"); PageTitle = AppResources.Bitwarden; ShowPasswordCommand = new Command(() => @@ -62,6 +64,7 @@ namespace Bit.App.Pages } else { + var task = Task.Run(async () => await _syncService.FullSyncAsync(true)); Application.Current.MainPage = new TabsPage(); } }