aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorSankar P <psankar@novell.com>2007-12-11 13:32:58 +0800
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2007-12-11 13:32:58 +0800
commit2e1605c30eab52782463a68da28e2a8a90180bf5 (patch)
tree687e950573b5e3cca440112aa5c3d48b4c575125 /addressbook
parent9ebabcebd1b699c0ee6be75b369efda19a55800d (diff)
downloadgsoc2013-evolution-2e1605c30eab52782463a68da28e2a8a90180bf5.tar
gsoc2013-evolution-2e1605c30eab52782463a68da28e2a8a90180bf5.tar.gz
gsoc2013-evolution-2e1605c30eab52782463a68da28e2a8a90180bf5.tar.bz2
gsoc2013-evolution-2e1605c30eab52782463a68da28e2a8a90180bf5.tar.lz
gsoc2013-evolution-2e1605c30eab52782463a68da28e2a8a90180bf5.tar.xz
gsoc2013-evolution-2e1605c30eab52782463a68da28e2a8a90180bf5.tar.zst
gsoc2013-evolution-2e1605c30eab52782463a68da28e2a8a90180bf5.zip
** Fix for bug #501969 Passwords should not be forgotten for all errors
2007-12-11 Sankar P <psankar@novell.com> ** Fix for bug #501969 * Passwords should not be forgotten for all errors svn path=/trunk/; revision=34686
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/gui/component/addressbook.c5
2 files changed, 11 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 5a746eaaa1..3abca21cf5 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,10 @@
+2007-12-11 Sankar P <psankar@novell.com>
+
+ ** Fix for bug #501969
+
+ * gui/component/addressbook.c: (load_source_auth_cb):
+ Passwords should not be forgotten on all errors
+
2007-12-06 David Turner <cillian64@googlemail.com>
** Fix for bug #468277
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);