mirror of
https://github.com/bitwarden/server.git
synced 2025-04-10 07:38:13 -05:00
Prevent error when using WebAuthn as non premium user (#1331)
This commit is contained in:
parent
785705342c
commit
4258076bae
@ -433,6 +433,11 @@ namespace Bit.Core.IdentityServer
|
|||||||
}
|
}
|
||||||
else if (type == TwoFactorProviderType.WebAuthn)
|
else if (type == TwoFactorProviderType.WebAuthn)
|
||||||
{
|
{
|
||||||
|
if (token == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return JsonSerializer.Deserialize<Dictionary<string, object>>(token);
|
return JsonSerializer.Deserialize<Dictionary<string, object>>(token);
|
||||||
}
|
}
|
||||||
else if (type == TwoFactorProviderType.Email)
|
else if (type == TwoFactorProviderType.Email)
|
||||||
|
@ -131,6 +131,7 @@ namespace Bit.Core.Models
|
|||||||
case TwoFactorProviderType.Duo:
|
case TwoFactorProviderType.Duo:
|
||||||
case TwoFactorProviderType.YubiKey:
|
case TwoFactorProviderType.YubiKey:
|
||||||
case TwoFactorProviderType.U2f:
|
case TwoFactorProviderType.U2f:
|
||||||
|
case TwoFactorProviderType.WebAuthn:
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user