Module: check_mk
Branch: master
Commit: 7c3e54e055245facfa8df0f5bab26dccb0a2078b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7c3e54e055245f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Dec 6 10:32:52 2011 +0100
login dialog: Showing user errors in the login area
---
web/htdocs/login.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/login.py b/web/htdocs/login.py
index d6d6ee4..cdca506 100644
--- a/web/htdocs/login.py
+++ b/web/htdocs/login.py
@@ -192,9 +192,6 @@ def normal_login_page():
html.set_render_headfoot(False)
html.header(_("Check_MK Multisite Login"), javascripts=[],
stylesheets=["pages", "login"])
- if html.has_user_errors():
- html.show_user_errors()
-
origtarget = html.var('_origtarget', '')
if not origtarget and not html.req.myfile == 'login':
origtarget = html.req.uri
@@ -204,6 +201,10 @@ def normal_login_page():
html.write("<h1>Check_MK Multisite</h2>")
html.write('<div id=form>')
+
+ if html.has_user_errors():
+ html.show_user_errors()
+
html.begin_form("login", method = 'POST', add_transid = False)
html.hidden_field('_origtarget', htmllib.attrencode(origtarget))
html.write('<p>')