diff options
Diffstat (limited to 'actions/openid_client')
-rw-r--r-- | actions/openid_client/login.php | 10 |
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(); } |