diff options
Diffstat (limited to 'protocols/Discord/src/connection.cpp')
-rw-r--r-- | protocols/Discord/src/connection.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/Discord/src/connection.cpp b/protocols/Discord/src/connection.cpp index 13a12129e2..df2479a2a4 100644 --- a/protocols/Discord/src/connection.cpp +++ b/protocols/Discord/src/connection.cpp @@ -107,10 +107,9 @@ bool CDiscordProto::TryToConnect(void) ConnectionFailed(LOGINERR_WRONGPASSWORD); return false; } - - Push(new AsyncHttpRequest(this, REQUEST_GET, "/user/login", &CDiscordProto::OnReceiveToken) - << WCHAR_PARAM("email", wszLogin) - << WCHAR_PARAM("password", wszPassword)); + + JSONNode root; root << WCHAR_PARAM("email", wszLogin) << WCHAR_PARAM("password", wszPassword); + Push(new AsyncHttpRequest(this, REQUEST_POST, "/auth/login", &CDiscordProto::OnReceiveToken, &root)); return true; } |