From 2e5ba0335d4a6888504c50f08b21820c50801964 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 24 May 2018 22:40:02 -0400 Subject: [PATCH] hide yubikey token cell for ios --- src/App/Pages/LoginTwoFactorPage.cs | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/App/Pages/LoginTwoFactorPage.cs b/src/App/Pages/LoginTwoFactorPage.cs index b5af0635d..1a93e4a9a 100644 --- a/src/App/Pages/LoginTwoFactorPage.cs +++ b/src/App/Pages/LoginTwoFactorPage.cs @@ -244,16 +244,20 @@ namespace Bit.App.Pages Margin = new Thickness(0, 0, 0, 25) }; - TokenCell = new FormEntryCell("", isPassword: true, imageSource: "lock", useLabelAsPlaceholder: true); - TokenCell.Entry.ReturnType = ReturnType.Go; + var section = new TableSection(Helpers.GetEmptyTableSectionTitle()) + { + RememberCell + }; - var table = new TwoFactorTable( - new TableSection(Helpers.GetEmptyTableSectionTitle()) - { - TokenCell, - RememberCell - }); + if(Device.RuntimePlatform != Device.iOS) + { + TokenCell = new FormEntryCell("", isPassword: true, imageSource: "lock", + useLabelAsPlaceholder: true); + TokenCell.Entry.ReturnType = ReturnType.Go; + section.Insert(0, TokenCell); + } + var table = new TwoFactorTable(section); var layout = new RedrawableStackLayout { Children = { instruction, image, table, anotherMethodButton },