Mercurial > pidgin
changeset 25960:f98049a447f2
Clear the saved password on an authentication failure. The result of this is
that clicking "Re-enable" on the minidialog in the buddy list will request the
user to enter the password again. Fixes #183.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Tue, 03 Mar 2009 05:54:21 +0000 |
parents | f2bbf82ffb89 |
children | 375f82b53e95 a4fea5757d27 |
files | ChangeLog pidgin/gtkconn.c |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Mar 03 05:13:52 2009 +0000 +++ b/ChangeLog Tue Mar 03 05:54:21 2009 +0000 @@ -18,6 +18,9 @@ * Pressing the Enter key in the message entry box of the New Status dialog and various other dialogs now causes the cursor to move to the next line. + * Authentication failures now clear the account password, causing Pidgin + to prompt for the password when clicking the "Re-enable" button on the + minidialog. version 2.5.5 (03/01/2009): libpurple:
--- a/pidgin/gtkconn.c Tue Mar 03 05:13:52 2009 +0000 +++ b/pidgin/gtkconn.c Tue Mar 03 05:54:21 2009 +0000 @@ -163,6 +163,11 @@ g_hash_table_remove(auto_reconns, account); purple_account_set_enabled(account, PIDGIN_UI, FALSE); + + /* clear the saved password if this is an authentication failure */ + if(reason == PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED) + purple_account_set_password(account, NULL); + } /* If we have any open chats, we probably want to rejoin when we get back online. */