pidgin: bf254d85: Clear the password on an MSN account if ...
qulogic at pidgin.im
qulogic at pidgin.im
Sat Jul 17 20:52:36 EDT 2010
----------------------------------------------------------------------
Revision: bf254d85fb121a0a699992e1f391b65d0e37b05d
Parent: 1a7a779bc2131e1ccb4153db0f799a791246c84b
Author: qulogic at pidgin.im
Date: 07/17/10 14:49:09
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/bf254d85fb121a0a699992e1f391b65d0e37b05d
Changelog:
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.
Changes against parent 1a7a779bc2131e1ccb4153db0f799a791246c84b
patched libpurple/protocols/msn/session.c
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/session.c a946b69745ff5a673f944fcd070d68fe1e04578f
+++ libpurple/protocols/msn/session.c ca42a1d350eee0cf5e7efff0de5a2fb6d8eb10dd
@@ -362,6 +362,9 @@ msn_session_set_error(MsnSession *sessio
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;
More information about the Commits
mailing list