Module: check_mk
Branch: master
Commit: 42d55002268899c2b4df10189f159f72a2ce5e11
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=42d55002268899…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 31 10:22:45 2012 +0100
Removing tailing spaces from usernames when using web form based login
---
web/htdocs/login.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/login.py b/web/htdocs/login.py
index 439e441..a1a3f8c 100644
--- a/web/htdocs/login.py
+++ b/web/htdocs/login.py
@@ -147,7 +147,7 @@ def do_login():
err = None
if html.var('_login'):
try:
- username = html.var('_username', '')
+ username = html.var('_username', '').rstrip()
if username == '':
raise MKUserError('_username', _('No username given.'))