Module: check_mk
Branch: master
Commit: 777a4a6264b3e08c9ddffff3d8bb68794fe80975
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=777a4a6264b3e0…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jul 20 09:46:41 2012 +0200
WATO: allow @ in user names
---
web/htdocs/wato.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 3fe4de2..cd81da8 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -7531,8 +7531,8 @@ def mode_edit_user(phase):
id = html.var("userid").strip()
if new and id in users:
raise MKUserError("userid", _("This username is already being
used by another user."))
- if not re.match("^[-a-z0-9A-Z_\.]+$", id):
- raise MKUserError("userid", _("The username must consist only
of letters, digit and the underscore."))
+ if not re.match("^[-a-z0-9A-Z_\.@]+$", id):
+ raise MKUserError("userid", _("The username must consist only
of letters, digits, <tt>@</tt>, <tt>_</tt> or colon."))
if new:
new_user = {}