From 0b249d4dd493e2e2b85c83a1d0b7b341c86e5a60 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 22 Jul 2019 13:59:12 -0400 Subject: [PATCH] check yubico token length == 44 --- src/App/Pages/Accounts/TwoFactorPage.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/Pages/Accounts/TwoFactorPage.xaml.cs b/src/App/Pages/Accounts/TwoFactorPage.xaml.cs index 3218eb141..e3fae6c8d 100644 --- a/src/App/Pages/Accounts/TwoFactorPage.xaml.cs +++ b/src/App/Pages/Accounts/TwoFactorPage.xaml.cs @@ -57,7 +57,7 @@ namespace Bit.App.Pages { var token = (string)message.Data; if(_vm.YubikeyMethod && !string.IsNullOrWhiteSpace(token) && - token.Length > 40 && !token.Contains(" ")) + token.Length == 44 && !token.Contains(" ")) { Device.BeginInvokeOnMainThread(async () => {