mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 21:48:12 -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)
|
||||
{
|
||||
if (token == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return JsonSerializer.Deserialize<Dictionary<string, object>>(token);
|
||||
}
|
||||
else if (type == TwoFactorProviderType.Email)
|
||||
|
@ -131,6 +131,7 @@ namespace Bit.Core.Models
|
||||
case TwoFactorProviderType.Duo:
|
||||
case TwoFactorProviderType.YubiKey:
|
||||
case TwoFactorProviderType.U2f:
|
||||
case TwoFactorProviderType.WebAuthn:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user