diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-06-24 17:06:02 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-06-24 17:17:07 +0200 |
commit | 1aa8399915bc6148fab3ad8e3eae736e9a135c09 (patch) | |
tree | c7d8843e7b311314e8c3d3f56b146a43d32b2b56 /apps/user_openid/templates | |
parent | 2772c66259b78cb4fdf6204e7d2fd452aed63808 (diff) | |
download | nextcloud-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/templates')
-rw-r--r-- | apps/user_openid/templates/nomode.php | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/apps/user_openid/templates/nomode.php b/apps/user_openid/templates/nomode.php index 13a1a894931..f85d28cdc9b 100644 --- a/apps/user_openid/templates/nomode.php +++ b/apps/user_openid/templates/nomode.php @@ -5,17 +5,22 @@ global $profile; ?> <div id="login"> - <img src="<?php echo image_path("", "weather-clear.png"); ?>" alt="ownCloud" /> + <img src="<?php echo image_path("", "owncloud-logo-medium-white.png"); ?>" alt="ownCloud" /> <ul> <li class='error'> <div id="setup_form"> - <p><?php echo($l->t('This is an OpenID server endpoint. For more information, see http://openid.net/'));?></p> - <p><?php echo($l->t('Server: <b>').$profile['idp_url']); ?></b> - <p><?php echo($l->t('Realm: <b>').$profile['php_realm']); ?></b> - <p><a href="<?php echo($profile['idp_url']); ?>?openid.mode=login"><?php echo($l->t('Login')); ?></a> - <?php if($profile['allow_test'] === true){ ?> - | <a href="<?php echo($profile['idp_url']); ?>?openid.mode=test">Test</a> - <?php } ?> + <p><?php echo($l->t('This is an OpenID server endpoint. For more information, see '));?><a href='http://openid.net/' title='openid.net'>http://openid.net/</a></p> + <?php if($_['user']):?> + <p><?php echo($l->t('Identity: <b>').$profile['idp_url']); ?></b></p> + <p><?php echo($l->t('Realm: <b>').$profile['php_realm']); ?></b></p> + <p><?php echo($l->t('User: <b>').$_['user']); ?></b> + <p><a href="<?php echo($profile['idp_url']); ?>?openid.mode=login"><?php echo($l->t('Login')); ?></a> + <?php if($profile['allow_test'] === true): ?> + <a href="<?php echo($profile['idp_url']); ?>?openid.mode=test">Test</a> + <?php endif; ?> + <?php else: ?> + <p><?php echo($l->t('Error: <b>No user Selected')); ?></p> + <?php endif; ?> </div> </li> </ul> |