Mercurial > pidgin
comparison libpurple/protocols/jabber/auth.c @ 19999:da29f5c7dc1a
Clear the password when we get an auth. error and we're not saving passwords so that you don't need to go into the account settings to reset it. Fix #3083.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 14 Sep 2007 00:03:30 +0000 |
parents | 44b4e8bd759b |
children | f24a2cacacd1 0cb113dfb096 |
comparison
equal
deleted
inserted
replaced
19998:7baa2bc64226 | 19999:da29f5c7dc1a |
---|---|
536 | 536 |
537 if((error = xmlnode_get_child(packet, "error")) && | 537 if((error = xmlnode_get_child(packet, "error")) && |
538 (err_code = xmlnode_get_attrib(error, "code")) && | 538 (err_code = xmlnode_get_attrib(error, "code")) && |
539 !strcmp(err_code, "401")) { | 539 !strcmp(err_code, "401")) { |
540 js->gc->wants_to_die = TRUE; | 540 js->gc->wants_to_die = TRUE; |
541 /* Clear the pasword if it isn't being saved */ | |
542 if (!purple_account_get_remember_password(js->gc->account)) | |
543 purple_account_set_password(js->gc->account, NULL); | |
541 } | 544 } |
542 | 545 |
543 purple_connection_error(js->gc, msg); | 546 purple_connection_error(js->gc, msg); |
544 g_free(msg); | 547 g_free(msg); |
545 } | 548 } |