Changeset 12442ed for protocols


Ignore:
Timestamp:
2015-10-14T16:28:52Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
532efdf
Parents:
0b1ae59
Message:

msn: Better error messages on 'location blocked'

This is what the 'howtofixmsn' wiki page addressed, which has a very
generic name because it's one of the first msn issues that appeared when
we thought it was dying. Since it's just a security measure, it still
appears when people log in from unusual locations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.c

    r0b1ae59 r12442ed  
    327327        struct xt_node *code = xt_find_node(node->children, "faultcode");
    328328        struct xt_node *string = xt_find_node(node->children, "faultstring");
     329        struct xt_node *reqstatus = xt_find_path(node, "psf:pp/psf:reqstatus");
    329330        struct xt_node *url;
    330331
     
    335336                   url->text_len > 0) {
    336337                sd->redirect = g_strdup(url->text);
     338        } else if (reqstatus && strcmp(reqstatus->text, "0x800488fe") == 0) {
     339                char *msg = "Location blocked. Log in to live.com, go to recent activity and click 'this was me'";
     340                sd->error = g_strdup_printf("%s (%s)", code->text, msg);
    337341        } else {
    338342                sd->error = g_strdup_printf("%s (%s)", code->text, string && string->text_len ?
     
    346350        { "wsse:BinarySecurityToken", "wst:RequestedSecurityToken", msn_soap_passport_sso_token },
    347351        { "S:Fault", "S:Envelope", msn_soap_passport_failure },
     352        { "S:Fault", "wst:RequestSecurityTokenResponse", msn_soap_passport_failure },
    348353        { NULL, NULL, NULL }
    349354};
Note: See TracChangeset for help on using the changeset viewer.