yubikey token must be > 40 in length too

This commit is contained in:
Kyle Spearrin 2019-07-06 22:09:20 -04:00
parent eca4777b99
commit 65725b5a38
1 changed files with 2 additions and 1 deletions

View File

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