[evolution-data-server] I#112 - Credentials prompter re-asks for credentials of disabled accounts
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] I#112 - Credentials prompter re-asks for credentials of disabled accounts
- Date: Tue, 7 May 2019 16:04:29 +0000 (UTC)
commit 3ca120ce4056f95ba1ac3776c98453da7d580e91
Author: Milan Crha <mcrha redhat com>
Date: Tue May 7 18:06:20 2019 +0200
I#112 - Credentials prompter re-asks for credentials of disabled accounts
Closes https://gitlab.gnome.org/GNOME/evolution-data-server/issues/112
src/libedataserverui/e-credentials-prompter.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/libedataserverui/e-credentials-prompter.c b/src/libedataserverui/e-credentials-prompter.c
index f1baa205c..82c0039ff 100644
--- a/src/libedataserverui/e-credentials-prompter.c
+++ b/src/libedataserverui/e-credentials-prompter.c
@@ -1572,9 +1572,9 @@ e_credentials_prompter_process_awaiting_credentials (ECredentialsPrompter *promp
* @prompter: an #ECredentialsPrompter
* @source: an #ESource
*
- * Continues a credential prompt for @source. Returns, whether anything wil be done.
+ * Continues a credential prompt for @source. Returns, whether anything will be done.
* The %FALSE either means that the @source<!-- -->'s connection status is not
- * the %E_SOURCE_CONNECTION_STATUS_AWAITING_CREDENTIALS.
+ * the %E_SOURCE_CONNECTION_STATUS_AWAITING_CREDENTIALS or it is disabled.
*
* Returns: Whether continues with the credentials prompt.
*
@@ -1587,7 +1587,8 @@ e_credentials_prompter_process_source (ECredentialsPrompter *prompter,
g_return_val_if_fail (E_IS_CREDENTIALS_PROMPTER (prompter), FALSE);
g_return_val_if_fail (E_IS_SOURCE (source), FALSE);
- if (e_source_get_connection_status (source) != E_SOURCE_CONNECTION_STATUS_AWAITING_CREDENTIALS)
+ if (e_source_get_connection_status (source) != E_SOURCE_CONNECTION_STATUS_AWAITING_CREDENTIALS ||
+ !e_source_registry_check_enabled (prompter->priv->registry, source))
return FALSE;
e_source_get_last_credentials_required_arguments (source, prompter->priv->cancellable,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]