Module: check_mk
Branch: master
Commit: c0624e52dd74c66fbec9da57604a9b454726c30d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c0624e52dd74c6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 7 15:39:26 2011 +0100
WATO Fixed invalid MKUserError call when too short secret given
---
web/htdocs/wato.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index fc55d82..2ec191e 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -7201,7 +7201,7 @@ def mode_edit_user(phase):
if auth_method == "secret":
secret = html.var("secret", "").strip()
if not secret or len(secret) < 10:
- raise MKUserError(_("Please specify a secret of at least 10
characters length."))
+ raise MKUserError('secret', _("Please specify a secret of at
least 10 characters length."))
new_user["automation_secret"] = secret
new_user["password"] = encrypt_password(secret)