diff options
author | Sushma Rai <rsushma@src.gnome.org> | 2006-01-13 23:29:02 +0800 |
---|---|---|
committer | Sushma Rai <rsushma@src.gnome.org> | 2006-01-13 23:29:02 +0800 |
commit | a3a7bbbc5bfd8bd46a1ac061e15705c020f68aee (patch) | |
tree | e376bae6608e11fc2b6eca9fba0d03090d46fe1f /plugins/exchange-operations | |
parent | 1e45971589e5cd66cf99df633b7be81a4d5259f9 (diff) | |
download | gsoc2013-evolution-a3a7bbbc5bfd8bd46a1ac061e15705c020f68aee.tar gsoc2013-evolution-a3a7bbbc5bfd8bd46a1ac061e15705c020f68aee.tar.gz gsoc2013-evolution-a3a7bbbc5bfd8bd46a1ac061e15705c020f68aee.tar.bz2 gsoc2013-evolution-a3a7bbbc5bfd8bd46a1ac061e15705c020f68aee.tar.lz gsoc2013-evolution-a3a7bbbc5bfd8bd46a1ac061e15705c020f68aee.tar.xz gsoc2013-evolution-a3a7bbbc5bfd8bd46a1ac061e15705c020f68aee.tar.zst gsoc2013-evolution-a3a7bbbc5bfd8bd46a1ac061e15705c020f68aee.zip |
Set the "save-passwd" parameter value EAccount. Fixes #326842.
svn path=/trunk/; revision=31170
Diffstat (limited to 'plugins/exchange-operations')
-rw-r--r-- | plugins/exchange-operations/ChangeLog | 5 | ||||
-rw-r--r-- | plugins/exchange-operations/exchange-config-listener.c | 11 |
2 files changed, 15 insertions, 1 deletions
diff --git a/plugins/exchange-operations/ChangeLog b/plugins/exchange-operations/ChangeLog index a32225760b..f65f7ca4c7 100644 --- a/plugins/exchange-operations/ChangeLog +++ b/plugins/exchange-operations/ChangeLog @@ -1,5 +1,10 @@ 2006-01-13 Sushma Rai <rsushma@novell.com> + * exchange-config-listener.c (exchange_config_listener_authenticate): + Set the "save-passwd" parameter value EAccount. Fixes #326842. + +2006-01-13 Sushma Rai <rsushma@novell.com> + * exchange-config-listener.c: Added krb5 checks while invoking change_passwd_cb() and exchange_config_listener_authenticate(). diff --git a/plugins/exchange-operations/exchange-config-listener.c b/plugins/exchange-operations/exchange-config-listener.c index cc11a20eba..28330c94b0 100644 --- a/plugins/exchange-operations/exchange-config-listener.c +++ b/plugins/exchange-operations/exchange-config-listener.c @@ -661,7 +661,7 @@ exchange_config_listener_authenticate (ExchangeConfigListener *ex_conf_listener, { ExchangeConfigListenerPrivate *priv; ExchangeAccountResult result; - char *key, *password, *title, *new_password; + char *key, *password, *title, *new_password, *url_string; gboolean oldremember, remember = FALSE; CamelURL *camel_url; const char *remember_password; @@ -681,6 +681,14 @@ exchange_config_listener_authenticate (ExchangeConfigListener *ex_conf_listener, &remember, NULL); if (remember != oldremember) { exchange_account_set_save_password (account, remember); + camel_url_set_param (camel_url, "save-passwd", remember? "true" : "false"); + url_string = camel_url_to_string (camel_url, 0); + e_account_set_string (ex_conf_listener->priv->configured_account, E_ACCOUNT_SOURCE_URL, url_string); + e_account_set_string (ex_conf_listener->priv->configured_account, E_ACCOUNT_TRANSPORT_URL, url_string); + e_account_set_bool (ex_conf_listener->priv->configured_account, E_ACCOUNT_SOURCE_SAVE_PASSWD, remember); + e_account_list_change (E_ACCOUNT_LIST (ex_conf_listener), ex_conf_listener->priv->configured_account); + e_account_list_save (E_ACCOUNT_LIST (ex_conf_listener)); + g_free (url_string); } g_free (title); } @@ -691,6 +699,7 @@ exchange_config_listener_authenticate (ExchangeConfigListener *ex_conf_listener, * asking for password again, at the end of account creation. */ e_passwords_forget_password ("Exchange", key); + exchange_account_set_save_password (account, FALSE); } exchange_account_connect (account, password, &result); g_free (password); |