changeset 6105:786adff640e1

[gaim-migrate @ 6566] This mostly fixes Cae non-fatal bug 11. The password is now correctly updated in the accounts.xml file. However, the asterisked password set in the login window is not changed, so if you try to re-login with the login window without exiting Gaim then it will use your old password, and something triggers a write of accounts.xml, so the old password gets written to accounts.xml. I would think the snazziest way around this is for the accounts API to allow stuff to attach signals to say, a password change for any account. ...but I won't be the one to do that. "Under the ruins of a waaalled city..." committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 13 Jul 2003 08:20:42 +0000
parents 29ddc42ff402
children 99f4bbeb27bc
files src/dialogs.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Sun Jul 13 07:58:32 2003 +0000
+++ b/src/dialogs.c	Sun Jul 13 08:20:42 2003 +0000
@@ -2116,7 +2116,7 @@
 	}
 
 	serv_change_passwd(b->gc, orig, new1);
-	g_snprintf(b->gc->account->password, sizeof(b->gc->account->password), "%s", new1);
+	gaim_account_set_password(gaim_connection_get_account(b->gc), new1);
 
 	destroy_dialog(NULL, b->window);
 	g_free(b);