TorrentNetwork: fix login

This commit is contained in:
kaso17 2017-12-20 17:18:36 +01:00
parent ed41d383a3
commit 743de0fae7
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ namespace Jackett.Indexers
APIHeaders["Authorization"] = token;
var curuser = await SendAPIRequest("curuser", null);
if (curuser.passkey.IsNullOrEmptyOrWhitespace())
if (string.IsNullOrWhiteSpace(curuser.passkey.ToString()))
throw new ExceptionWithConfigData("got empty passkey: " + curuser.ToString(), configData);
passkey = curuser.passkey;
var passkeyItem = (HiddenItem)configData.GetDynamic("passkey");