From d9bf22a0e29c2a70049443a0ae8521a2c0492c8b Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 11 Dec 2011 06:38:23 -0500 Subject: initial commit for git repository --- actions/missing.php | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 actions/missing.php (limited to 'actions/missing.php') diff --git a/actions/missing.php b/actions/missing.php new file mode 100644 index 000000000..f18bad65a --- /dev/null +++ b/actions/missing.php @@ -0,0 +1,54 @@ +email = $email; + $details->name = $name; + openid_client_send_activate_confirmation_message($details); + system_message(sprintf(elgg_echo("openid_client:activate_confirmation"),$email)); + } elseif ($code{0} == 'n') { + //activate and login + $user = get_user($details->owner); + $user->email = $email; + $user->name = $name; + $user->active = 'yes'; + $user->save(); + system_message(sprintf(elgg_echo("openid_client:created_openid_account"),$email, $name)); + login($user); + } + forward(); +} elseif ($details) { + // regenerate the form + $user = get_user($details->owner); + $openid_url = $user->alias; + $email_confirmation = openid_client_check_email_confirmation($openid_url); + $body = openid_client_generate_missing_data_form($openid_url,$email,$fullname,$email_confirmation,$code); + page_draw(elgg_echo('openid_client:information_title'),$body); +} else { + // bad code - not much to do but inform user + forward(); +} -- cgit v1.2.3