From bc56428d493d99576ff274611df3b029e7e47e0a Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Thu, 15 Dec 2011 22:00:20 -0500 Subject: added some registration code for first time users --- actions/openid_client/register.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 actions/openid_client/register.php (limited to 'actions/openid_client/register.php') diff --git a/actions/openid_client/register.php b/actions/openid_client/register.php new file mode 100644 index 000000000..e847d2395 --- /dev/null +++ b/actions/openid_client/register.php @@ -0,0 +1,34 @@ +getMessage()); + forward(REFERER); +} +$user = get_entity($guid); + +$user->openid_identifier = $openid_identifier; +elgg_set_user_validation_status($guid, true, 'openid'); + +if (!elgg_trigger_plugin_hook('register', 'user', array('user' => $user), true)) { + $user->delete(); + register_error(elgg_echo('registerbad')); + forward(REFERER); +} + +login($user); +system_message($message); +forward(); -- cgit v1.2.3