summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-06-24 18:02:51 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-06-24 18:02:51 +0200
commit7d2784c4c3145c8dcf15fb357f2325ae29d65717 (patch)
treecb03f794b4817c22240375e025617101362e01d5 /apps
parent4d11e920be943bdd60c86e46b8f6c922dea87c79 (diff)
downloadnextcloud-server-7d2784c4c3145c8dcf15fb357f2325ae29d65717.tar.gz
nextcloud-server-7d2784c4c3145c8dcf15fb357f2325ae29d65717.zip
add openid headers to openid request page
Diffstat (limited to 'apps')
-rw-r--r--apps/user_openid/phpmyid.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/user_openid/phpmyid.php b/apps/user_openid/phpmyid.php
index 5b04684cd7d..69cd7111625 100644
--- a/apps/user_openid/phpmyid.php
+++ b/apps/user_openid/phpmyid.php
@@ -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();
}