aboutsummaryrefslogtreecommitdiff
path: root/return.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-01-28 12:27:05 -0500
committerCash Costello <cash.costello@gmail.com>2012-01-28 12:27:05 -0500
commit11a7ca1c5c23af990422783b14d021a7c177032b (patch)
tree6fc2de6bb0d20b048a9f9a2e697850fd2b16143e /return.php
parent80ed1e24b59d62c411cb2bed5535d9e6fd9fcc9a (diff)
downloadelgg-11a7ca1c5c23af990422783b14d021a7c177032b.tar.gz
elgg-11a7ca1c5c23af990422783b14d021a7c177032b.tar.bz2
fixed bug where email wasn't being passed to register action - now using annotations instead of metadata to hold openid identifier
Diffstat (limited to 'return.php')
-rw-r--r--return.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/return.php b/return.php
index dbc57d318..87ce5b19f 100644
--- a/return.php
+++ b/return.php
@@ -25,11 +25,10 @@ if (!$data || !$data['openid_identifier']) {
}
// does this user exist
-$users = elgg_get_entities_from_metadata(array(
+$users = elgg_get_entities_from_annotations(array(
'type' => 'user',
- 'subtype' => 'openid',
- 'metadata_name' => 'openid_identifier',
- 'metadata_value' => $data['openid_identifier'],
+ 'annotation_name' => 'openid_identifier',
+ 'annotation_value' => $data['openid_identifier'],
));
if ($users) {
// log in user and maybe update account (admin setting, user prompt?)