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/login.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 actions/openid_client/login.php (limited to 'actions/openid_client/login.php') diff --git a/actions/openid_client/login.php b/actions/openid_client/login.php new file mode 100644 index 000000000..5e7ad3ace --- /dev/null +++ b/actions/openid_client/login.php @@ -0,0 +1,20 @@ +setProvider('google'); +$consumer->setReturnURL(elgg_get_site_url() . 'mod/openid_client/return.php'); + +$html = $consumer->requestAuthentication(); +if ($html) { + echo $html; + exit; +} else { + register_error('oops'); +} -- cgit v1.2.3