private async Task AuthenticateSucceed(AbpAuthenticateResultModel result) { AuthenticateResultModel = result; if (AuthenticateResultModel.ShouldResetPassword) { await UserDialogs.Instance.AlertAsync(L.Localize("ChangePasswordToLogin"), L.Localize("LoginFailed"), L.Localize("Ok")); return; } if (AuthenticateResultModel.RequiresTwoFactorVerification) { await _navigationService.SetMainPage <SendTwoFactorCodeView>(AuthenticateResultModel); return; } if (!AbpAuthenticateModel.IsTwoFactorVerification) { await _dataStorageService.StoreAuthenticateResultAsync(AuthenticateResultModel); } AbpAuthenticateModel.Password = null; await SetCurrentUserInfoAsync(); await UserConfigurationManager.GetAsync(); await _navigationService.SetMainPage <MainView>(clearNavigationHistory : true); }