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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user