diff options
| author | Sushma Rai <rsushma@src.gnome.org> | 2006-01-18 05:31:37 +0000 |
|---|---|---|
| committer | Sushma Rai <rsushma@src.gnome.org> | 2006-01-18 05:31:37 +0000 |
| commit | 4567a68d3ff4d2d015c528dc53a4d65991ceb56a (patch) | |
| tree | 12d04b0068e4e21b20d23099015527ae00b263ea | |
| parent | 063e64df31aa69bc62b55c28caacf0be5b55773e (diff) | |
| download | evolution-data-server-4567a68d3ff4d2d015c528dc53a4d65991ceb56a.tar.gz | |
Whenever the authenticate button is pressed, always prompt for password.
Fixes #327292.
| -rw-r--r-- | servers/exchange/ChangeLog | 5 | ||||
| -rw-r--r-- | servers/exchange/lib/e2k-autoconfig.c | 27 |
2 files changed, 21 insertions, 11 deletions
diff --git a/servers/exchange/ChangeLog b/servers/exchange/ChangeLog index 592838616..013faedd4 100644 --- a/servers/exchange/ChangeLog +++ b/servers/exchange/ChangeLog @@ -1,3 +1,8 @@ +2006-01-18 Sushma Rai <rsushma@novell.com> + + * lib/e2k-autoconfig.c (e2k_validate_user): Whenever the authenticate + button is pressed, always prompt for password. Fixes #327292. + 2006-01-14 Sushma Rai <rsushma@novell.com> * storage/exchange-esource.c (add_folder_esource): Marking the GAL diff --git a/servers/exchange/lib/e2k-autoconfig.c b/servers/exchange/lib/e2k-autoconfig.c index f52413293..778ace39b 100644 --- a/servers/exchange/lib/e2k-autoconfig.c +++ b/servers/exchange/lib/e2k-autoconfig.c @@ -1624,19 +1624,24 @@ e2k_validate_user (const char *owa_url, char *user, char *key, *password, *prompt; key = g_strdup_printf ("%s//%s@%s/", "exchange:", user, owa_url); /* FIXME */ - password = e_passwords_get_password ("Exchange", key); + if (password) { + /* This can be the case, where user presses authenticate button and + * later cancels the account setup or removal of account fails for + * some reason. We need to prompt for the password always when + * authenticate button is pressed */ + e_passwords_forget_password ("Exchange", key); + } + + prompt = g_strdup_printf (_("Enter password for %s"), user); + password = e_passwords_ask_password (_("Enter password"), + "Exchange", key, prompt, + E_PASSWORDS_REMEMBER_FOREVER|E_PASSWORDS_SECRET, + &remember, NULL); + g_free (prompt); if (!password) { - prompt = g_strdup_printf (_("Enter password for %s"), user); - password = e_passwords_ask_password (_("Enter password"), - "Exchange", key, prompt, - E_PASSWORDS_REMEMBER_FOREVER|E_PASSWORDS_SECRET, - &remember, NULL); - g_free (prompt); - if (!password) { - g_free (key); - return valid; - } + g_free (key); + return valid; } valid = validate (owa_url, user, password, exchange_params, result); |
