mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 08:07:10 -07:00
AuthenticationType is now configurable from /Settings/System.
This commit is contained in:
parent
f973c74c87
commit
f627b551fc
3 changed files with 26 additions and 0 deletions
|
@ -189,9 +189,21 @@ namespace NzbDrone.Web.Controllers
|
|||
|
||||
public ActionResult System()
|
||||
{
|
||||
var selectedAuthenticationType = _configFileProvider.AuthenticationType;
|
||||
var authenticationTypes = new List<AuthenticationType>();
|
||||
|
||||
foreach (AuthenticationType authenticationType in Enum.GetValues(typeof(AuthenticationType)))
|
||||
{
|
||||
authenticationTypes.Add(authenticationType);
|
||||
}
|
||||
|
||||
var authTypeSelectList = new SelectList(authenticationTypes, selectedAuthenticationType);
|
||||
|
||||
var model = new SystemSettingsModel();
|
||||
model.Port = _configFileProvider.Port;
|
||||
model.LaunchBrowser = _configFileProvider.LaunchBrowser;
|
||||
model.AuthenticationType = selectedAuthenticationType;
|
||||
model.AuthTypeSelectList = authTypeSelectList;
|
||||
|
||||
return View(model);
|
||||
}
|
||||
|
@ -455,6 +467,7 @@ namespace NzbDrone.Web.Controllers
|
|||
{
|
||||
_configFileProvider.Port = data.Port;
|
||||
_configFileProvider.LaunchBrowser = data.LaunchBrowser;
|
||||
_configFileProvider.AuthenticationType = data.AuthenticationType;
|
||||
|
||||
return GetSuccessResult();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue