aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-08-12 14:54:17 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-08-12 14:54:17 +0800
commitb837a54258f52311b9a3ad698126498abf2ca55d (patch)
tree777415aaf277f69c7c086f0c0dbad550b9558b9a /addressbook/gui
parent85ae1fd47c85524c5537aa713eeeb61936ded3a7 (diff)
downloadgsoc2013-evolution-b837a54258f52311b9a3ad698126498abf2ca55d.tar.gz
gsoc2013-evolution-b837a54258f52311b9a3ad698126498abf2ca55d.tar.zst
gsoc2013-evolution-b837a54258f52311b9a3ad698126498abf2ca55d.zip
e passwords api change/reprompt if we need to.
2004-08-10 Not Zed <NotZed@Ximian.com> * gui/component/addressbook.c (addressbook_authenticate): e passwords api change/reprompt if we need to. svn path=/trunk/; revision=26881
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/addressbook.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index 5b123edd5b..1f51524c8e 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -178,9 +178,11 @@ addressbook_authenticate (EBook *book, gboolean previous_failure, ESource *sourc
char *prompt;
gboolean remember;
char *failed_auth;
+ guint32 flags = E_PASSWORDS_REMEMBER_FOREVER|E_PASSWORDS_SECRET;
if (previous_failure) {
failed_auth = _("Failed to authenticate.\n");
+ flags |= E_PASSWORDS_REPROMPT;
}
else {
failed_auth = "";
@@ -190,9 +192,9 @@ addressbook_authenticate (EBook *book, gboolean previous_failure, ESource *sourc
failed_auth, e_source_peek_name (source), user);
remember = get_remember_password (source);
- pass_dup = e_passwords_ask_password (prompt, component_name, uri, prompt, TRUE,
- E_PASSWORDS_REMEMBER_FOREVER, &remember,
- NULL);
+ pass_dup = e_passwords_ask_password (prompt, component_name, uri, prompt,
+ flags, &remember,
+ NULL);
if (remember != get_remember_password (source))
set_remember_password (source, remember);