diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-04-17 11:13:12 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-04-17 11:13:12 +0000 |
commit | 106fb18ea726033237cc1afd7084dde30de788a3 (patch) | |
tree | 3b4fa08bee6726132d2dea4a849897d082dda657 | |
parent | 7fc6e94f576ccbdd3e38527433ce2ec4332e555e (diff) |
Facebook: Fix for getting some other login errors
E.g. "You entered old password."
git-svn-id: http://svn.miranda-ng.org/main/trunk@16683 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/FacebookRM/src/communication.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 3e2da643fa..179d9ee273 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -934,6 +934,8 @@ bool facebook_client::login(const char *username, const char *password) // Get and notify error message std::string error = utils::text::slashu_to_utf8(utils::text::source_get_value(&resp.data, 3, "[\"LoginFormError\"", "\"__html\":\"", "\"}")); if (error.empty()) + error = utils::text::slashu_to_utf8(utils::text::source_get_value(&resp.data, 3, "role=\"alert\"", ">", "</div")); + if (error.empty()) error = utils::text::slashu_to_utf8(utils::text::source_get_value(&resp.data, 3, "id=\"globalContainer\"", ">", "</div")); if (error.empty()) error = utils::text::slashu_to_utf8(utils::text::source_get_value(&resp.data, 2, "<strong>", "</strong")); |