Mercurial > pidgin
changeset 18650:648545b2c1f1
make us forget the password if the user didn't choose save password
and the password is incorrect. copied from oscar
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Thu, 26 Jul 2007 05:02:00 +0000 |
parents | 24e3cca6b03c |
children | b981d3c39d0b |
files | libpurple/protocols/yahoo/yahoo.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c Wed Jul 25 21:42:15 2007 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Thu Jul 26 05:02:00 2007 +0000 @@ -1917,6 +1917,7 @@ char *msg; char *url = NULL; char *fullmsg; + PurpleAccount *account = gc->account; while (l) { struct yahoo_pair *pair = l->data; @@ -1949,6 +1950,9 @@ return; } #endif + if (!purple_account_get_remember_password(account)) + purple_account_set_password(account, NULL); + msg = g_strdup(_("Incorrect password.")); break; case 14: