Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[telepathy-sasl-signon] Don't set CredentialsNeedUpdate on global ser…
…vice

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.
  • Loading branch information
Chris Adams committed Dec 10, 2013
1 parent 82b64de commit 08eb697
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions telepathy-sasl-signon/empathy-uoa-auth-handler.c
Expand Up @@ -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);
}

Expand All @@ -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);
}

Expand Down

0 comments on commit 08eb697

Please sign in to comment.