1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

Fixed: Authentication on DSM 7

closes #3943
ref #4313
This commit is contained in:
Ricardo Loureiro 2021-02-07 13:05:31 +00:00 committed by GitHub
parent 42d9e37e7d
commit 33b708927c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,7 @@ private string AuthenticateClient(DownloadStationSettings settings)
{
var authInfo = GetApiInfo(DiskStationApi.Auth, settings);
var requestBuilder = BuildRequest(settings, authInfo, "login", 2);
var requestBuilder = BuildRequest(settings, authInfo, "login", authInfo.MaxVersion >= 7 ? 6 : 2);
requestBuilder.AddQueryParam("account", settings.Username);
requestBuilder.AddQueryParam("passwd", settings.Password);
requestBuilder.AddQueryParam("format", "sid");