changeset 27271:63c026c0fede

Password reenter prompt only for accounts where password storing is enabled. More consistent with other accounts. Fix #9603
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Fri, 03 Jul 2009 11:43:15 +0000
parents 074e14e4f88c
children 802de68c9fc3
files libpurple/protocols/yahoo/yahoo.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c	Fri Jul 03 11:26:41 2009 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Fri Jul 03 11:43:15 2009 +0000
@@ -1792,7 +1792,8 @@
 				case 1212:
 					/* Password incorrect */
 					/* Set password to NULL. Avoids account locking. Brings dialog to enter password if clicked on Re-enable account */
-					purple_account_set_password(purple_connection_get_account(gc), NULL);
+					if (purple_account_get_remember_password(purple_connection_get_account(gc)))
+						purple_account_set_password(purple_connection_get_account(gc), NULL);
 					error_reason = g_strdup(_("Incorrect Password"));
 					error = PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED;
 					break;