mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
New: Don't return API Keys and Passwords via the API
(cherry picked from commit 570be882154e73f8ad1de5b16b957bcb964697fd) (cherry picked from commit 508a15e09ac1b08a90837d371353cdf11cd9ee3c)
This commit is contained in:
parent
f040835321
commit
aa65dadc49
10 changed files with 46 additions and 23 deletions
|
@ -143,7 +143,8 @@ namespace Lidarr.Api.V1
|
|||
|
||||
private TProviderDefinition GetDefinition(TProviderResource providerResource, bool validate, bool includeWarnings, bool forceValidate)
|
||||
{
|
||||
var definition = _resourceMapper.ToModel(providerResource);
|
||||
var existingDefinition = providerResource.Id > 0 ? _providerFactory.Find(providerResource.Id) : null;
|
||||
var definition = _resourceMapper.ToModel(providerResource, existingDefinition);
|
||||
|
||||
if (validate && (definition.Enable || forceValidate))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue