Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/auth.c Fri Sep 14 00:01:47 2007 +0000 +++ b/libpurple/protocols/jabber/auth.c Fri Sep 14 00:03:30 2007 +0000 @@ -538,6 +538,9 @@ (err_code = xmlnode_get_attrib(error, "code")) && !strcmp(err_code, "401")) { js->gc->wants_to_die = TRUE; + /* Clear the pasword if it isn't being saved */ + if (!purple_account_get_remember_password(js->gc->account)) + purple_account_set_password(js->gc->account, NULL); } purple_connection_error(js->gc, msg);