Mercurial > pidgin
comparison libpurple/protocols/oscar/clientlogin.c @ 29720:3fbae92e7e0b
oscar: Forget un-remembered passwords on Incorrect Password w/ clientLogin.
This brings it in line with the BUCP logic (and other prpls).
Fixes #11671, I assume.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Tue, 13 Apr 2010 04:30:08 +0000 |
parents | 519905ba5f75 |
children | 943fce8ef142 |
comparison
equal
deleted
inserted
replaced
29719:5abe9f74a1de | 29720:3fbae92e7e0b |
---|---|
426 | 426 |
427 purple_debug_error("oscar", "clientLogin response statusCode " | 427 purple_debug_error("oscar", "clientLogin response statusCode " |
428 "was %d (%d): %s\n", status_code, status_detail_code, response); | 428 "was %d (%d): %s\n", status_code, status_detail_code, response); |
429 | 429 |
430 if (status_code == 330 && status_detail_code == 3011) { | 430 if (status_code == 330 && status_detail_code == 3011) { |
431 PurpleAccount *account = purple_connection_get_account(gc); | |
432 if (!purple_account_get_remember_password(account)) | |
433 purple_account_set_password(account, NULL); | |
431 purple_connection_error_reason(gc, | 434 purple_connection_error_reason(gc, |
432 PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED, | 435 PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED, |
433 _("Incorrect password")); | 436 _("Incorrect password")); |
434 } else if (status_code == 330 && status_detail_code == 3015) { | 437 } else if (status_code == 330 && status_detail_code == 3015) { |
435 purple_connection_error_reason(gc, | 438 purple_connection_error_reason(gc, |