mirror of
https://github.com/bitwarden/mobile
synced 2025-12-16 08:13:20 +00:00
yubikey token must be > 40 in length too
This commit is contained in:
@@ -56,7 +56,8 @@ namespace Bit.App.Pages
|
|||||||
if(message.Command == "gotYubiKeyOTP")
|
if(message.Command == "gotYubiKeyOTP")
|
||||||
{
|
{
|
||||||
var token = (string)message.Data;
|
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 () =>
|
Device.BeginInvokeOnMainThread(async () =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user