From 22a004579696dfbde65df62edc65fccfe58d5b25 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 24 May 2018 22:43:59 -0400 Subject: [PATCH] try again button for ios yubikey --- src/App/Pages/LoginTwoFactorPage.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/App/Pages/LoginTwoFactorPage.cs b/src/App/Pages/LoginTwoFactorPage.cs index 1a93e4a9a..211dec633 100644 --- a/src/App/Pages/LoginTwoFactorPage.cs +++ b/src/App/Pages/LoginTwoFactorPage.cs @@ -264,6 +264,21 @@ namespace Bit.App.Pages Spacing = 0 }; + if(Device.RuntimePlatform == Device.iOS) + { + var tryAgainButton = new ExtendedButton + { + Text = AppResources.UseAnotherTwoStepMethod, + Style = (Style)Application.Current.Resources["btn-primaryAccent"], + Margin = new Thickness(15, 0, 15, 25), + Command = new Command(() => ListenYubiKey(true, true)), + Uppercase = false, + BackgroundColor = Color.Transparent, + VerticalOptions = LayoutOptions.Start + }; + layout.Children.Insert(3, tryAgainButton); + } + table.WrappingStackLayout = () => layout; scrollView.Content = layout; ToolbarItems.Add(continueToolbarItem);