Mercurial > pidgin
comparison libpurple/protocols/jabber/auth_plain.c @ 30564:3f5ff1ea4802
jabber: Partial revert (everything but ChangeLog) of 945ef5abc5
It causes issues with non-GAfyD accounts associated with arbitrary
email addresses (since Google lets the user auth with that email
and then changes the JID to be "@gmail.com"). Fixes #a14153
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 20 Sep 2010 00:51:21 +0000 |
parents | a97ddee04b78 |
children | a5b556ac1de5 |
comparison
equal
deleted
inserted
replaced
30563:ef625abecdbb | 30564:3f5ff1ea4802 |
---|---|
38 gchar *enc_out; | 38 gchar *enc_out; |
39 | 39 |
40 auth = xmlnode_new("auth"); | 40 auth = xmlnode_new("auth"); |
41 xmlnode_set_namespace(auth, NS_XMPP_SASL); | 41 xmlnode_set_namespace(auth, NS_XMPP_SASL); |
42 | 42 |
43 if (g_str_equal(js->user->domain, "gmail.com") || | 43 xmlnode_set_attrib(auth, "xmlns:ga", "http://www.google.com/talk/protocol/auth"); |
44 g_str_equal(js->user->domain, "googlemail.com")) { | 44 xmlnode_set_attrib(auth, "ga:client-uses-full-bind-result", "true"); |
45 xmlnode_set_attrib(auth, "xmlns:ga", "http://www.google.com/talk/protocol/auth"); | |
46 xmlnode_set_attrib(auth, "ga:client-uses-full-bind-result", "true"); | |
47 } | |
48 | 45 |
49 response = g_string_new(""); | 46 response = g_string_new(""); |
50 response = g_string_append_c(response, '\0'); | 47 response = g_string_append_c(response, '\0'); |
51 response = g_string_append(response, js->user->node); | 48 response = g_string_append(response, js->user->node); |
52 response = g_string_append_c(response, '\0'); | 49 response = g_string_append_c(response, '\0'); |