During login, if password incorrect, set it to NULL. Avoids account locking. Brings dialog to enter password if clicked on Re-enable account

Fri, 03 Jul 2009 11:26:41 +0000

author
Sulabh Mahajan <sulabh@pidgin.im>
date
Fri, 03 Jul 2009 11:26:41 +0000
changeset 27511
b331af9eaf40
parent 27510
08d9dc7185e7
child 27512
09bae417640b

During login, if password incorrect, set it to NULL. Avoids account locking. Brings dialog to enter password if clicked on Re-enable account

libpurple/protocols/yahoo/yahoo.c file | annotate | diff | comparison | revisions
--- 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;

mercurial