From ca27b34122a936f36e0460612dd9e4c9d57d2582 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 1 Jun 2019 01:08:18 -0400 Subject: [PATCH] focus yubikey token entry --- src/App/Pages/Accounts/TwoFactorPage.xaml | 1 + src/App/Pages/Accounts/TwoFactorPage.xaml.cs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/App/Pages/Accounts/TwoFactorPage.xaml b/src/App/Pages/Accounts/TwoFactorPage.xaml index ee1a59440..3347da6f0 100644 --- a/src/App/Pages/Accounts/TwoFactorPage.xaml +++ b/src/App/Pages/Accounts/TwoFactorPage.xaml @@ -68,6 +68,7 @@ { _vm.Init(); - if(_vm.TotpMethod || _vm.YubikeyMethod) + if(_vm.TotpMethod) { RequestFocus(_totpEntry); } + else if(_vm.YubikeyMethod) + { + RequestFocus(_yubikeyTokenEntry); + } return Task.FromResult(0); }); }