1
0
mirror of https://github.com/bitwarden/server synced 2026-01-06 18:43:36 +00:00

Fix WebAuthn not working after move to System.Text.Json (#1818)

This commit is contained in:
Oscar Hinton
2022-01-24 18:13:43 +01:00
committed by GitHub
parent ac8ca46f0f
commit a9a5417350
4 changed files with 14 additions and 7 deletions

View File

@@ -132,6 +132,7 @@ namespace Bit.Core.Entities
public void SetTwoFactorProviders(Dictionary<TwoFactorProviderType, TwoFactorProvider> providers)
{
// When replacing with system.text remember to remove the extra serialization in WebAuthnTokenProvider.
TwoFactorProviders = JsonHelpers.LegacySerialize(providers);
_twoFactorProviders = providers;
}