From 65725b5a38f71b482c1876c6400e69beec356d6a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 6 Jul 2019 22:09:20 -0400 Subject: [PATCH] yubikey token must be > 40 in length too --- src/App/Pages/Accounts/TwoFactorPage.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App/Pages/Accounts/TwoFactorPage.xaml.cs b/src/App/Pages/Accounts/TwoFactorPage.xaml.cs index 5a7eb2f5a..3218eb141 100644 --- a/src/App/Pages/Accounts/TwoFactorPage.xaml.cs +++ b/src/App/Pages/Accounts/TwoFactorPage.xaml.cs @@ -56,7 +56,8 @@ namespace Bit.App.Pages if(message.Command == "gotYubiKeyOTP") { var token = (string)message.Data; - if(_vm.YubikeyMethod && !string.IsNullOrWhiteSpace(token) && !token.Contains(" ")) + if(_vm.YubikeyMethod && !string.IsNullOrWhiteSpace(token) && + token.Length > 40 && !token.Contains(" ")) { Device.BeginInvokeOnMainThread(async () => {