[evolution/account-mgmt: 14/33] Temporarily disable email password storage.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/account-mgmt: 14/33] Temporarily disable email password storage.
- Date: Wed, 2 Mar 2011 03:46:49 +0000 (UTC)
commit 8a5e399da5eab95acc58d7100dc1b88a78dc428c
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 a9b12b0..7f4d7a0 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;
@@ -676,12 +678,14 @@ 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);
@@ -719,7 +723,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 0228d2e..da29e50 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -3661,8 +3661,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]