Module: check_mk
Branch: master
Commit: fa9796448c0ffd2fc5de94c83d159ea1489a97cd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fa9796448c0ffd…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 15 10:26:44 2017 +0100
4368 FIX User password were deleted when saving users without setting a new password
Change-Id: I21bc33aff70c1b799e5ee323678e446070f36dc8
---
.werks/4368 | 9 +++++++++
web/htdocs/wato.py | 2 --
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/.werks/4368 b/.werks/4368
new file mode 100644
index 0000000..24518ed
--- /dev/null
+++ b/.werks/4368
@@ -0,0 +1,9 @@
+Title: User password were deleted when saving users without setting a new password
+Level: 1
+Component: wato
+Compatible: compat
+Version: 1.5.0i1
+Date: 1487150776
+Class: fix
+
+
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 34c0411..cce72d4 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -10429,8 +10429,6 @@ def mode_edit_user(phase):
if password2 and password != password2:
raise MKUserError("password2", _("The both passwords do
not match."))
- user_attrs["password"] = password
-
# Detect switch back from automation to password
if "automation_secret" in user_attrs:
del user_attrs["automation_secret"]