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 () => {