Commit 0ef4b892 authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #751578 by xamanu, sanduhrs, Gábor Hojtsy: OpenID realm should not be language dependent.

parent 6ea173ec
......@@ -499,6 +499,8 @@ function openid_association_request($public) {
}
function openid_authentication_request($claimed_id, $identity, $return_to = '', $assoc_handle = '', $version = 2) {
global $base_url;
module_load_include('inc', 'openid');
$ns = ($version == 2) ? OPENID_NS_2_0 : OPENID_NS_1_0;
......@@ -512,10 +514,10 @@ function openid_authentication_request($claimed_id, $identity, $return_to = '',
);
if ($version == 2) {
$request['openid.realm'] = url('', array('absolute' => TRUE));
$request['openid.realm'] = $base_url . '/';
}
else {
$request['openid.trust_root'] = url('', array('absolute' => TRUE));
$request['openid.trust_root'] = $base_url . '/';
}
// Simple Registration
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment