use openid.php functions in finishimmediate

darcs-hash:20080619135603-84dde-1bfd6606f34416eb6f1be4d5c926f6bb198427bd.gz
This commit is contained in:
Evan Prodromou 2008-06-19 09:56:03 -04:00
parent 0ba9948603
commit 3c32396109

View File

@ -35,10 +35,10 @@ class FinishimmediateAction extends Action {
$canonical = ($response->endpoint->canonicalID) ? $canonical = ($response->endpoint->canonicalID) ?
$response->endpoint->canonicalID : $response->getDisplayIdentifier(); $response->endpoint->canonicalID : $response->getDisplayIdentifier();
$user = $this->get_user($canonical); $user = oid_get_user($canonical);
if ($user) { if ($user) {
$this->update_user($user, $sreg); oid_update_user($user, $sreg);
common_set_user($user->nickname); common_set_user($user->nickname);
$this->go_backto(); $this->go_backto();
return; return;