Commit f4bb27ab authored by chriadam's avatar chriadam

[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.
parent b7c6bfa4
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment