mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 16:12:49 -05:00
Ignore case on AutoEnrollEnabled so it is deserialized properly (#1900)
This commit is contained in:
@ -1773,7 +1773,7 @@ namespace Bit.Core.Services
|
||||
// Block the user from withdrawal if auto enrollment is enabled
|
||||
if (resetPasswordKey == null && resetPasswordPolicy.Data != null)
|
||||
{
|
||||
var data = JsonSerializer.Deserialize<ResetPasswordDataModel>(resetPasswordPolicy.Data);
|
||||
var data = JsonSerializer.Deserialize<ResetPasswordDataModel>(resetPasswordPolicy.Data, JsonHelpers.IgnoreCase);
|
||||
|
||||
if (data?.AutoEnrollEnabled ?? false)
|
||||
{
|
||||
|
Reference in New Issue
Block a user