comparison src/dialogs.c @ 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 4314e6be74c4
children a22c151463e1
comparison
equal deleted inserted replaced
6104:29ddc42ff402 6105:786adff640e1
2114 _("Fill out all fields completely."), NULL); 2114 _("Fill out all fields completely."), NULL);
2115 return; 2115 return;
2116 } 2116 }
2117 2117
2118 serv_change_passwd(b->gc, orig, new1); 2118 serv_change_passwd(b->gc, orig, new1);
2119 g_snprintf(b->gc->account->password, sizeof(b->gc->account->password), "%s", new1); 2119 gaim_account_set_password(gaim_connection_get_account(b->gc), new1);
2120 2120
2121 destroy_dialog(NULL, b->window); 2121 destroy_dialog(NULL, b->window);
2122 g_free(b); 2122 g_free(b);
2123 } 2123 }
2124 2124