Mercurial > pidgin.yaz
changeset 30694:62ca462d0abc
Clear the password on an MSN account if saving is disabled and the
password was wrong. This should be in line with what other prpls do.
Fixes #12290.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 17 Jul 2010 18:49:09 +0000 |
parents | 28d5f60910c9 |
children | 3ff6c193efee |
files | libpurple/protocols/msn/session.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/session.c Mon Jul 12 15:15:18 2010 +0000 +++ b/libpurple/protocols/msn/session.c Sat Jul 17 18:49:09 2010 +0000 @@ -362,6 +362,9 @@ msg = g_strdup_printf(_("Unable to authenticate: %s"), (info == NULL ) ? _("Unknown error") : info); + /* Clear the password if it isn't being saved */ + if (!purple_account_get_remember_password(session->account)) + purple_account_set_password(session->account, NULL); break; case MSN_ERROR_BAD_BLIST: reason = PURPLE_CONNECTION_ERROR_NETWORK_ERROR;