From a62adbd9cb180fe6bbf88cff2f787d262f737ecb Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 17 Dec 2011 12:43:35 -0500 Subject: removed code from previous plugin --- actions/sync.php | 57 -------------------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 actions/sync.php (limited to 'actions/sync.php') diff --git a/actions/sync.php b/actions/sync.php deleted file mode 100644 index 3f93df9df..000000000 --- a/actions/sync.php +++ /dev/null @@ -1,57 +0,0 @@ -name = $name; - system_message(sprintf(elgg_echo("openid_client:name_updated"),$name)); - } - - if ($emailchange) { - $i_code = get_input('i_code'); - if (empty($i_code)) { - $new_email = get_input('new_email'); - // this is an email address change request from a yellow OpenID, so the - // email address change must be confirmed with an email message - if (get_user_by_email($email)) { - register_error(sprintf(elgg_echo("openid_client:email_in_use"),$email)); - } else { - $details = openid_client_create_invitation('c',$user->username,$userid,$new_email,$user->name); - openid_client_send_change_confirmation_message($details); - system_message(sprintf(elgg_echo("openid_client:change_confirmation"), $email)); - } - } elseif (!($details = openid_client_get_invitation($i_code))) { - register_error(elgg_echo("openid_client:invalid_code_error")); - } else { - // this is an email address change request from a green OpenID, so the - // email address change does not need to be confirmed - - $email = $details->email; - $ident = $details->owner; - if (get_user_by_email($email)) { - register_error(sprintf(elgg_echo("openid_client:email_in_use"),$email)); - } else { - $user->email; - system_message(sprintf(elgg_echo("openid_client:email_updated"),$email)); - } - } - } - - if ($nosync) { - $store = new OpenID_ElggStore(); - $store->addNoSyncStatus($user); - } -} - -forward(); -- cgit v1.2.3