mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Plex server testing will use username and password if configured
This commit is contained in:
parent
2cc0dc3aab
commit
e58faf8621
@ -108,7 +108,13 @@ public void Execute(TestPlexClientCommand message)
|
||||
|
||||
public void Execute(TestPlexServerCommand message)
|
||||
{
|
||||
if (!GetSectionKeys(new PlexServerSettings {Host = message.Host, Port = message.Port}).Any())
|
||||
if (!GetSectionKeys(new PlexServerSettings
|
||||
{
|
||||
Host = message.Host,
|
||||
Port = message.Port,
|
||||
Username = message.Username,
|
||||
Password = message.Password
|
||||
}).Any())
|
||||
{
|
||||
throw new Exception("Unable to connect to Plex Server");
|
||||
}
|
||||
|
@ -14,5 +14,7 @@ public override bool SendUpdatesToClient
|
||||
|
||||
public string Host { get; set; }
|
||||
public int Port { get; set; }
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user