diff src/connection.c @ 9848:f462f91edeb2

[gaim-migrate @ 10726] " After an account was disconnected or signed off, Gaim was not forgetting that it knew the password of the user while in the same application session. This patch causes gaim to blank the password for accounts that do not have "Remember password" set when an account is disconnected by request or forced." --Dave West our rationale for remembering them during that instance of gaim was that you probly do not want to have to type it in again if you are disconnected. after seeing numerous bug reports about people mis-typing their password and people afraid that someone else will sit down at their computer, i decided that this rationale isn't as compelling. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 24 Aug 2004 11:43:39 +0000
parents 267eab8f3fa4
children e389922bdea7
line wrap: on
line diff
--- a/src/connection.c	Tue Aug 24 05:16:35 2004 +0000
+++ b/src/connection.c	Tue Aug 24 11:43:39 2004 +0000
@@ -263,6 +263,9 @@
 		gaim_notify_close_with_handle(gc);
 	}
 
+	if (!gaim_account_get_remember_password(account))
+		gaim_account_set_password(account,NULL);
+
 	gaim_connection_destroy(gc);
 }
 
@@ -270,6 +273,10 @@
 gaim_connection_disconnect_cb(gpointer data)
 {
 	GaimAccount *account = data;
+
+	if (!gaim_account_get_remember_password(account))
+		gaim_account_set_password(account,NULL);
+
 	GaimConnection *gc = gaim_account_get_connection(account);
 
 	if(gc)