mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
parent
563b5ef017
commit
6bbe4ce066
1 changed files with 16 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
@ -142,7 +142,21 @@ namespace NzbDrone.Core.Configuration
|
||||||
|
|
||||||
public bool LaunchBrowser => GetValueBoolean("LaunchBrowser", true);
|
public bool LaunchBrowser => GetValueBoolean("LaunchBrowser", true);
|
||||||
|
|
||||||
public string ApiKey => GetValue("ApiKey", GenerateApiKey());
|
public string ApiKey
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
var apiKey = GetValue("ApiKey", GenerateApiKey());
|
||||||
|
|
||||||
|
if (apiKey.IsNullOrWhiteSpace())
|
||||||
|
{
|
||||||
|
apiKey = GenerateApiKey();
|
||||||
|
SetValue("ApiKey", apiKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
return apiKey;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public AuthenticationType AuthenticationMethod
|
public AuthenticationType AuthenticationMethod
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue