blob: 74a8de8f68d467d84d7972aed6936e3639d99269 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
/**
* OpenID client login action
*/
elgg_load_library('openid_consumer');
$consumer = new ElggOpenIDConsumer($store);
$consumer->setProvider(get_input('provider'));
$consumer->setReturnURL(elgg_get_site_url() . 'mod/openid_client/return.php');
$html = $consumer->requestAuthentication();
if ($html) {
echo $html;
exit;
} else {
register_error('oops');
}
|