mirror of
https://github.com/bitwarden/server
synced 2025-12-12 22:33:45 +00:00
Ignore case on AutoEnrollEnabled so it is deserialized properly (#1900)
This commit is contained in:
@@ -185,7 +185,7 @@ namespace Bit.Api.Controllers
|
||||
return new OrganizationAutoEnrollStatusResponseModel(organization.Id, false);
|
||||
}
|
||||
|
||||
var data = JsonSerializer.Deserialize<ResetPasswordDataModel>(resetPasswordPolicy.Data);
|
||||
var data = JsonSerializer.Deserialize<ResetPasswordDataModel>(resetPasswordPolicy.Data, JsonHelpers.IgnoreCase);
|
||||
return new OrganizationAutoEnrollStatusResponseModel(organization.Id, data?.AutoEnrollEnabled ?? false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user