aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/addressbook.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index 898ce692d9..0649b02f43 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -120,7 +120,10 @@ load_source_auth_cb (EBook *book, EBookStatus status, gpointer closure)
component_name = auth_domain ? auth_domain : "Addressbook";
- e_passwords_forget_password (component_name, stripped_uri);
+ if (status == E_BOOK_ERROR_AUTHENTICATION_FAILED) {
+ e_passwords_forget_password (component_name, stripped_uri);
+ }
+
addressbook_authenticate (book, TRUE, data->source, load_source_auth_cb, closure);
g_free (stripped_uri);