diff --git a/src/App/Pages/CaptchaProtectedViewModel.cs b/src/App/Pages/CaptchaProtectedViewModel.cs index a39700d1b..26a48b52a 100644 --- a/src/App/Pages/CaptchaProtectedViewModel.cs +++ b/src/App/Pages/CaptchaProtectedViewModel.cs @@ -30,7 +30,7 @@ namespace Bit.App.Pages captchaRequiredText = AppResources.CaptchaRequired, }); - var url = environmentService.WebVaultUrl + "/captcha-mobile-connector.html?" + "data=" + data + + var url = environmentService.GetWebVaultUrl() + "/captcha-mobile-connector.html?" + "data=" + data + "&parent=" + Uri.EscapeDataString(callbackUri) + "&v=1"; WebAuthenticatorResult authResult = null; diff --git a/src/Core/Models/Response/ErrorResponse.cs b/src/Core/Models/Response/ErrorResponse.cs index ca91df845..cd240e44c 100644 --- a/src/Core/Models/Response/ErrorResponse.cs +++ b/src/Core/Models/Response/ErrorResponse.cs @@ -29,7 +29,7 @@ namespace Bit.Core.Models.Response { var model = errorModel.ToObject(); Message = model.Message; - ValidationErrors = model.ValidationErrors; + ValidationErrors = model.ValidationErrors ?? new Dictionary>(); CaptchaSiteKey = ValidationErrors.ContainsKey("HCaptcha_SiteKey") ? ValidationErrors["HCaptcha_SiteKey"]?.FirstOrDefault() : null; diff --git a/src/iOS.Core/Services/DeviceActionService.cs b/src/iOS.Core/Services/DeviceActionService.cs index cdef00658..6c37ea37b 100644 --- a/src/iOS.Core/Services/DeviceActionService.cs +++ b/src/iOS.Core/Services/DeviceActionService.cs @@ -106,7 +106,9 @@ namespace Bit.iOS.Core.Services if (_progressAlert == null) { result.TrySetResult(0); + return result.Task; } + _progressAlert.DismissViewController(false, () => result.TrySetResult(0)); _progressAlert.Dispose(); _progressAlert = null;