mirror of https://github.com/Jackett/Jackett
TorrentNetwork: fix login
This commit is contained in:
parent
ed41d383a3
commit
743de0fae7
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue