[icinga-checkins] icinga.org: icinga-web/mhein/default: * Fixed error window on invalid credentials

git at icinga.org git at icinga.org
Tue Nov 23 15:26:02 CET 2010


Module: icinga-web
Branch: mhein/default
Commit: d13fea01c4babaea4f549fa6a2b7432b7dae1017
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=d13fea01c4babaea4f549fa6a2b7432b7dae1017

Author: jmosshammer <jannis.mosshammer at netways.com>
Date:   Fri Oct 22 14:02:02 2010 +0200

* Fixed error window on invalid credentials

---

 app/modules/AppKit/templates/SecureSuccess.php |   19 ++++++-------------
 1 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/app/modules/AppKit/templates/SecureSuccess.php b/app/modules/AppKit/templates/SecureSuccess.php
index 27ea0d7..12dec1f 100755
--- a/app/modules/AppKit/templates/SecureSuccess.php
+++ b/app/modules/AppKit/templates/SecureSuccess.php
@@ -1,14 +1,7 @@
-<p>You do not have sufficient credentials to access this page
-(<?php echo $t['requested_action']; ?>, <?php echo $t['requested_module']; ?>).</p>
+<div style="text-align:center;width:480px;background-color:#dedede;;height:75px;border:1px solid #cecece;-moz-border-radius:5px;-webkit-border-radius:5px;margin-top:15%;margin:auto;padding:2em;-moz-box-shadow:2px 2px 2px #989898;-webkit-box-shadow:2px 2px 2px #989898">
+<h1>You do not have sufficient credentials to access this page</h1>
+<p>
+	Click <a href="<?php echo $ro->gen('appkit.logout',array('logout' => 1));?>">here</a> to log out
+</p>
 
-<form name="logout" action="<?php echo $ro->gen('appkit.logout') ?>" method="post">
-<p>You are currently logged in as
-<strong><?php echo $us->getAttribute('userobj')->givenName(); ?></strong>,
-press the button to logout!</p>
-
-<div class="submit">
-<?php echo AppKitFormElement::create('submit', null, 'logout'); ?>
-</div>
-
-<?php echo AppKitHiddenElement::create('logout', true); ?>
-</form>
\ No newline at end of file
+</div>
\ No newline at end of file





More information about the icinga-checkins mailing list