summaryrefslogtreecommitdiffstats
path: root/apps/user_openid/phpmyid.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-06-24 17:06:02 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-06-24 17:17:07 +0200
commit1aa8399915bc6148fab3ad8e3eae736e9a135c09 (patch)
treec7d8843e7b311314e8c3d3f56b146a43d32b2b56 /apps/user_openid/phpmyid.php
parent2772c66259b78cb4fdf6204e7d2fd452aed63808 (diff)
downloadnextcloud-server-1aa8399915bc6148fab3ad8e3eae736e9a135c09.tar.gz
nextcloud-server-1aa8399915bc6148fab3ad8e3eae736e9a135c09.zip
show error on openid request page when no user is selected
Diffstat (limited to 'apps/user_openid/phpmyid.php')
-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 330cd466c48..5b04684cd7d 100644
--- a/apps/user_openid/phpmyid.php
+++ b/apps/user_openid/phpmyid.php
@@ -560,7 +560,9 @@ function logout_mode () {
* @global array $profile
*/
function no_mode () {
+ global $USERNAME;
$tmpl = new OC_TEMPLATE( 'user_openid', 'nomode', 'guest' );
+ $tmpl->assign('user',$USERNAME);
$tmpl->printPage();
}
@@ -1669,7 +1671,7 @@ if (! array_key_exists('auth_domain', $profile))
// Set a default authentication realm
if (! array_key_exists('auth_realm', $profile))
- $profile['auth_realm'] = 'phpMyID';
+ $profile['auth_realm'] = 'ownCloud';
// Determine the realm for digest authentication - DO NOT OVERRIDE
$profile['php_realm'] = $profile['auth_realm'] . (ini_get('safe_mode') ? '-' . getmyuid() : '');