mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-21 22:25:03 -04:00
New: Don't return API Keys and Passwords via the API
(cherry picked from commit 570be882154e73f8ad1de5b16b957bcb964697fd) Don't replace private values that haven't been set (cherry picked from commit 52760e0908fa9852ed8a770f1916bb582eb8c8b4)
This commit is contained in:
@@ -104,14 +104,14 @@ namespace Prowlarr.Api.V1.Indexers
|
||||
return resource;
|
||||
}
|
||||
|
||||
public override IndexerDefinition ToModel(IndexerResource resource)
|
||||
public override IndexerDefinition ToModel(IndexerResource resource, IndexerDefinition existingDefinition)
|
||||
{
|
||||
if (resource == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var definition = base.ToModel(resource);
|
||||
var definition = base.ToModel(resource, existingDefinition);
|
||||
|
||||
if (resource.Implementation == nameof(Cardigann))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user