add openid headers to openid request page

This commit is contained in:
Robin Appelman 2011-06-24 18:02:51 +02:00
parent 4d11e920be
commit 7d2784c4c3
1 changed files with 3 additions and 1 deletions

View File

@ -560,8 +560,10 @@ function logout_mode () {
* @global array $profile
*/
function no_mode () {
global $USERNAME;
global $USERNAME, $profile;
$tmpl = new OC_TEMPLATE( 'user_openid', 'nomode', 'guest' );
$tmpl->addHeader('link',array('rel'=>'openid.server', 'href'=>$profile['req_url']));
$tmpl->addHeader('link',array('rel'=>'openid.delegate', 'href'=>$profile['idp_url']));
$tmpl->assign('user',$USERNAME);
$tmpl->printPage();
}