mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
fixed authentication.
This commit is contained in:
parent
028bd5251c
commit
3bed87ec4e
2 changed files with 11 additions and 12 deletions
|
@ -39,12 +39,9 @@ namespace NzbDrone.Api
|
|||
|
||||
container.Resolve<IMessageAggregator>().PublishEvent(new ApplicationStartedEvent());
|
||||
|
||||
if (container.Resolve<IConfigFileProvider>().AuthenticationType == AuthenticationType.Basic)
|
||||
{
|
||||
pipelines.EnableBasicAuthentication(new BasicAuthenticationConfiguration(
|
||||
container.Resolve<IUserValidator>(),
|
||||
"NzbDrone"));
|
||||
}
|
||||
pipelines.EnableBasicAuthentication(new BasicAuthenticationConfiguration(
|
||||
container.Resolve<IUserValidator>(),
|
||||
"NzbDrone"));
|
||||
|
||||
ApplicationPipelines.OnError.AddItemToEndOfPipeline(container.Resolve<NzbDroneErrorPipeline>().HandleException);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue