summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/oauth.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-12-20 16:52:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-12-20 16:52:04 +0300
commite8f02156813b7153d4970fd83f2e6adac3517923 (patch)
tree49632cf70e8dc0f6b464a0bbc6e06e0c88c2ca90 /protocols/SkypeWeb/src/requests/oauth.h
parentab6c868bccb088d493ab4016fd1918d822adfc2b (diff)
SkypeWeb: protocol reworked almost from scratch to support contact types other than 8 & 19
Diffstat (limited to 'protocols/SkypeWeb/src/requests/oauth.h')
-rw-r--r--protocols/SkypeWeb/src/requests/oauth.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/requests/oauth.h b/protocols/SkypeWeb/src/requests/oauth.h
index 32cee1ec76..ccd9a9d2fc 100644
--- a/protocols/SkypeWeb/src/requests/oauth.h
+++ b/protocols/SkypeWeb/src/requests/oauth.h
@@ -41,6 +41,9 @@ struct OAuthRequest : public AsyncHttpRequest
AddHeader("Cookie", cookies);
+ if (auto *delim = strchr(login, ':'))
+ login = delim + 1;
+
this << CHAR_PARAM("login", login) << CHAR_PARAM("passwd", password) << CHAR_PARAM("PPFT", ppft);
}