From ce4e3ed1cd1e349108c31b052d80c1ca18522be2 Mon Sep 17 00:00:00 2001 From: Matt Portune <59324545+mportune-bw@users.noreply.github.com> Date: Thu, 14 Oct 2021 11:53:41 -0400 Subject: [PATCH] support for new btnReturnText in mobile webauthn connector (#1576) * support for new btnReturnText in mobile webauthn connector * added header text for connector localization --- src/App/Pages/Accounts/TwoFactorPageViewModel.cs | 2 ++ src/App/Resources/AppResources.Designer.cs | 6 ++++++ src/App/Resources/AppResources.resx | 3 +++ 3 files changed, 11 insertions(+) diff --git a/src/App/Pages/Accounts/TwoFactorPageViewModel.cs b/src/App/Pages/Accounts/TwoFactorPageViewModel.cs index 768be9eeb..f663c4217 100644 --- a/src/App/Pages/Accounts/TwoFactorPageViewModel.cs +++ b/src/App/Pages/Accounts/TwoFactorPageViewModel.cs @@ -204,7 +204,9 @@ namespace Bit.App.Pages { callbackUri = callbackUri, data = JsonConvert.SerializeObject(providerData), + headerText = AppResources.Fido2Title, btnText = AppResources.Fido2AuthenticateWebAuthn, + btnReturnText = AppResources.Fido2ReturnToApp, }); var url = _webVaultUrl + "/webauthn-mobile-connector.html?" + "data=" + data + diff --git a/src/App/Resources/AppResources.Designer.cs b/src/App/Resources/AppResources.Designer.cs index 471545f71..c2f92a336 100644 --- a/src/App/Resources/AppResources.Designer.cs +++ b/src/App/Resources/AppResources.Designer.cs @@ -3609,6 +3609,12 @@ namespace Bit.App.Resources { } } + public static string Fido2ReturnToApp { + get { + return ResourceManager.GetString("Fido2ReturnToApp", resourceCulture); + } + } + public static string Fido2CheckBrowser { get { return ResourceManager.GetString("Fido2CheckBrowser", resourceCulture); diff --git a/src/App/Resources/AppResources.resx b/src/App/Resources/AppResources.resx index 00afe3277..5a3dd740c 100644 --- a/src/App/Resources/AppResources.resx +++ b/src/App/Resources/AppResources.resx @@ -2039,6 +2039,9 @@ Authenticate WebAuthn + + Return to App + Please make sure your default browser supports WebAuthn and try again.