aboutsummaryrefslogtreecommitdiff
path: root/actions/openid_client
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-17 21:52:20 -0500
committercash <cash.costello@gmail.com>2011-12-17 21:52:20 -0500
commitaae0fa0c6762d25e048c297156f8969c6242eb11 (patch)
treea29d26529a26a7ae850a0cea5ce107814325043b /actions/openid_client
parentaa9ed6f3eb46fb9508692d1b5d92c717c3648527 (diff)
downloadelgg-aae0fa0c6762d25e048c297156f8969c6242eb11.tar.gz
elgg-aae0fa0c6762d25e048c297156f8969c6242eb11.tar.bz2
added support for OpenID 1.x
Diffstat (limited to 'actions/openid_client')
-rw-r--r--actions/openid_client/login.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/actions/openid_client/login.php b/actions/openid_client/login.php
index 74a8de8f6..cf991ea0f 100644
--- a/actions/openid_client/login.php
+++ b/actions/openid_client/login.php
@@ -5,8 +5,12 @@
elgg_load_library('openid_consumer');
+$provider = get_input('openid_provider');
+$username = get_input('openid_username');
+
$consumer = new ElggOpenIDConsumer($store);
-$consumer->setProvider(get_input('provider'));
+$consumer->setProvider($provider);
+$consumer->setUsername($username);
$consumer->setReturnURL(elgg_get_site_url() . 'mod/openid_client/return.php');
$html = $consumer->requestAuthentication();
@@ -14,5 +18,7 @@ if ($html) {
echo $html;
exit;
} else {
- register_error('oops');
+ $provider_name = elgg_echo("openid_client:provider:$provider");
+ register_error(elgg_echo('openid_client:error:no_html', array($provider_name)));
+ forward();
}