[evolution-kolab] kolab-util-calendar: allow the (X)FB trigger code to read Kolab password



commit 55e8d1be96011f7655406da0c60246329d5924f7
Author: Christian Hilberg <hilberg kernelconcepts de>
Date:   Tue Sep 11 17:40:20 2012 +0200

    kolab-util-calendar: allow the (X)FB trigger code to read Kolab password
    
    * when creating the (X)FB update trigger, which is a HTTP request,
      we need to know the Kolab user password for HTTP basic auth
    * so we temporarily expose the password, pull the trigger, and
      hide the password again

 src/calendar/kolab-util-calendar.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/calendar/kolab-util-calendar.c b/src/calendar/kolab-util-calendar.c
index fa86b89..f43267f 100644
--- a/src/calendar/kolab-util-calendar.c
+++ b/src/calendar/kolab-util-calendar.c
@@ -321,6 +321,7 @@ kolab_util_calendar_store (ECalComponent *ecalcomp,
 		goto cleanup;
 
 	if (do_trigger == TRUE) {
+		kolab_mail_access_password_set_visible (koma, TRUE);
 		(void) kolab_util_calendar_toggle_pfb_trigger (ksettings,
 		                                               foldername,
 		                                               &tmp_err);
@@ -334,6 +335,7 @@ kolab_util_calendar_store (ECalComponent *ecalcomp,
 			g_error_free (tmp_err);
 			tmp_err = NULL;
 		}
+		kolab_mail_access_password_set_visible (koma, FALSE);
 	}
 
  cleanup:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]