From 08eb697613c2c7bf2b23aa5024b24b0ea57909ec Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Tue, 10 Dec 2013 14:43:58 +1000 Subject: [PATCH] [telepathy-sasl-signon] Don't set CredentialsNeedUpdate on global service Instead, set it on the service which we're using for the account. Also, print a debug line to the log when raising the flag. --- telepathy-sasl-signon/empathy-uoa-auth-handler.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/telepathy-sasl-signon/empathy-uoa-auth-handler.c b/telepathy-sasl-signon/empathy-uoa-auth-handler.c index 54ac058..e4ff83f 100644 --- a/telepathy-sasl-signon/empathy-uoa-auth-handler.c +++ b/telepathy-sasl-signon/empathy-uoa-auth-handler.c @@ -161,7 +161,6 @@ request_password_account_store_cb (AgAccount *account, error->message); } - ag_account_select_service (account, ag_account_service_get_service (ctx->service)); auth_context_done(ctx); } @@ -180,10 +179,12 @@ request_password (AuthContext *ctx) g_value_init (&fromValue, G_TYPE_STRING); g_value_set_static_string (&fromValue, "telepathy-sasl-signon"); - ag_account_select_service (account, NULL); ag_account_set_value (account, "CredentialsNeedUpdate", &value); ag_account_set_value (account, "CredentialsNeedUpdateFrom", &fromValue); + DEBUG ("telepathy-sasl-signon: setting CredentialsNeedUpdate on service %s for account: %d", + ag_service_get_name(ag_account_service_get_service (ctx->service)), account->id); + ag_account_store (account, request_password_account_store_cb, ctx); }