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 --- pages/confirm.php | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pages/confirm.php (limited to 'pages/confirm.php') diff --git a/pages/confirm.php b/pages/confirm.php new file mode 100644 index 000000000..1f2668620 --- /dev/null +++ b/pages/confirm.php @@ -0,0 +1,46 @@ +new_owner); + $user->email = $details->email; + $user->name = $details->name; + $user->active = 'yes'; + $user->save(); + system_message(sprintf(elgg_echo("openid_client:account_created"), $details->username)); + openid_client_remove_invitation($code); + } + +} elseif ($code{0} == 'c') { + // request to change an email address + if (!$details = openid_client_get_invitation($code)) { + register_error(elgg_echo("openid_client:invalid_code_error")); + } else { + // OK, everything seems to be in order, so change the email address + $user = get_user($details->new_owner); + $user->email = $details->email; + $user->save(); + system_message(sprintf(elgg_echo('openid_client:email_changed'),$details->email)); + openid_client_remove_invitation($code); + } +} + +if(isset($body) && $body) { + page_draw(elgg_echo('openid_client:confirmation_title'),$body); +} else { + forward(); +} -- cgit v1.2.3