changeset 27270:074e14e4f88c

During login, if password incorrect, set it to NULL. Avoids account locking. Brings dialog to enter password if clicked on Re-enable account
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Fri, 03 Jul 2009 11:26:41 +0000
parents fd52b7a547e4
children 63c026c0fede
files libpurple/protocols/yahoo/yahoo.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c	Fri Jul 03 11:13:35 2009 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Fri Jul 03 11:26:41 2009 +0000
@@ -1791,6 +1791,8 @@
 					break;
 				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);
 					error_reason = g_strdup(_("Incorrect Password"));
 					error = PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED;
 					break;