[evolution/account-mgmt: 12/25] Temporarily disable email password storage.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/account-mgmt: 12/25] Temporarily disable email password storage.
- Date: Tue, 18 Jan 2011 18:48:14 +0000 (UTC)
commit 3d8fdf877ab01f42b618ce2418795aa6f5e79f3f
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Dec 8 00:21:51 2010 -0500
Temporarily disable email password storage.
mail/e-mail-session.c | 6 ++++++
mail/em-account-editor.c | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/mail/e-mail-session.c b/mail/e-mail-session.c
index 68d553e..fb51cf8 100644
--- a/mail/e-mail-session.c
+++ b/mail/e-mail-session.c
@@ -622,7 +622,9 @@ mail_session_get_password (CamelSession *session,
if (domain == NULL)
domain = "Mail";
+#if 0 /* ACCOUNT_MGMT */
ret = e_passwords_get_password (domain, key);
+#endif /* ACCOUNT_MGMT */
if (ret == NULL || (flags & CAMEL_SESSION_PASSWORD_REPROMPT)) {
gboolean remember;
@@ -675,10 +677,12 @@ mail_session_get_password (CamelSession *session,
if (!e_account_writable (NULL, E_ACCOUNT_SOURCE_SAVE_PASSWD))
eflags |= E_PASSWORDS_DISABLE_REMEMBER;
+#if 0 /* ACCOUNT_MGMT */
ret = e_passwords_ask_password (title, domain, key, prompt, eflags, &remember, NULL);
if (!ret)
e_passwords_forget_password (domain, key);
+#endif /* ACCOUNT_MGMT */
g_free (title);
@@ -716,7 +720,9 @@ mail_session_forget_password (CamelSession *session,
domain = (domain != NULL) ? domain : "Mail";
key = mail_session_make_key (service, item);
+#if 0 /* ACCOUNT_MGMT */
e_passwords_forget_password (domain, key);
+#endif /* ACCOUNT_MGMT */
g_free (key);
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 7a2dc3f..eaa9eed 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -3658,8 +3658,10 @@ forget_password_if_needed (EAccount *original_account, EAccount *modified_accoun
auth_domain = "Mail";
url_str = camel_url_to_string (url, CAMEL_URL_HIDE_PASSWORD | CAMEL_URL_HIDE_PARAMS);
+#if 0 /* ACCOUNT_MGMT */
if (url_str)
e_passwords_forget_password (auth_domain, url_str);
+#endif /* ACCOUNT_MGMT */
g_free (url_str);
camel_url_free (url);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]