comparison 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
comparison
equal deleted inserted replaced
9847:ab097ff50f5b 9848:f462f91edeb2
261 261
262 gaim_request_close_with_handle(gc); 262 gaim_request_close_with_handle(gc);
263 gaim_notify_close_with_handle(gc); 263 gaim_notify_close_with_handle(gc);
264 } 264 }
265 265
266 if (!gaim_account_get_remember_password(account))
267 gaim_account_set_password(account,NULL);
268
266 gaim_connection_destroy(gc); 269 gaim_connection_destroy(gc);
267 } 270 }
268 271
269 gboolean 272 gboolean
270 gaim_connection_disconnect_cb(gpointer data) 273 gaim_connection_disconnect_cb(gpointer data)
271 { 274 {
272 GaimAccount *account = data; 275 GaimAccount *account = data;
276
277 if (!gaim_account_get_remember_password(account))
278 gaim_account_set_password(account,NULL);
279
273 GaimConnection *gc = gaim_account_get_connection(account); 280 GaimConnection *gc = gaim_account_get_connection(account);
274 281
275 if(gc) 282 if(gc)
276 gaim_connection_disconnect(gc); 283 gaim_connection_disconnect(gc);
277 284