From f4bb27ab54cab0b749c8659fe4350edf3596a18b Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Tue, 15 Oct 2013 14:56:06 +1000 Subject: [PATCH] [telepathy-sasl-signon] Add provenance information to account update flag. This commit adds a flag to the account which describes which software component raised the "CredentialsNeedUpdate" flag. This allows us to determine more easily whether the flag is an old or new flag, depending on provenance. --- telepathy-sasl-signon/empathy-uoa-auth-handler.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/telepathy-sasl-signon/empathy-uoa-auth-handler.c b/telepathy-sasl-signon/empathy-uoa-auth-handler.c index 8f8a513..54ac058 100644 --- a/telepathy-sasl-signon/empathy-uoa-auth-handler.c +++ b/telepathy-sasl-signon/empathy-uoa-auth-handler.c @@ -176,8 +176,13 @@ request_password (AuthContext *ctx) g_value_init (&value, G_TYPE_BOOLEAN); g_value_set_boolean (&value, TRUE); + GValue fromValue = G_VALUE_INIT; + 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); ag_account_store (account, request_password_account_store_cb, ctx); }