diff options
Diffstat (limited to 'return.php')
-rw-r--r-- | return.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/return.php b/return.php index b37f25bd9..e9a723c39 100644 --- a/return.php +++ b/return.php @@ -40,9 +40,10 @@ if ($users) { $email = elgg_extract('email', $data);
if ($email) {
$users = get_user_by_email($email);
- if (count($users) === 1) {
- $user = $users[0];
- $user->annotate('openid_identifier', $data['openid_identifier'], ACCESS_PUBLIC);
+ if (count($users)) {
+ register_error(elgg_echo('openid_client:email_register')
+ forward();
+
}
}
}
|