|
|
|
@ -16,13 +16,11 @@ namespace NzbDrone.Api.Authentication
|
|
|
|
|
private readonly IConfigFileProvider _configFileProvider;
|
|
|
|
|
private static readonly NzbDroneUser AnonymousUser = new NzbDroneUser { UserName = "Anonymous" };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public AuthenticationService(IConfigFileProvider configFileProvider)
|
|
|
|
|
{
|
|
|
|
|
_configFileProvider = configFileProvider;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public IUserIdentity Validate(string username, string password)
|
|
|
|
|
{
|
|
|
|
|
if (!Enabled)
|
|
|
|
|