Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
Chris Adams committed Oct 15, 2013
1 parent b7c6bfa commit f4bb27a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions telepathy-sasl-signon/empathy-uoa-auth-handler.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit f4bb27a

Please sign in to comment.