Module: check_mk
Branch: master
Commit: 2e1707e66edc4398fff6feb3000c7a132963d2f4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2e1707e66edc43…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Dec 6 08:40:12 2011 +0100
Fixed missing modules
---
web/htdocs/login.py | 2 +-
web/htdocs/wato.py | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/login.py b/web/htdocs/login.py
index 629dbc5..d6d6ee4 100644
--- a/web/htdocs/login.py
+++ b/web/htdocs/login.py
@@ -24,7 +24,7 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-import defaults, htmllib, config
+import defaults, htmllib, config, wato
from lib import *
from mod_python import apache
import os, md5, md5crypt, crypt, time
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 933ab78..a4d5ae2 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -6883,6 +6883,7 @@ def get_login_secret(create_on_demand = False):
return secret
def encrypt_password(password, salt = None):
+ import md5crypt
if not salt:
salt = "%06d" % (1000000 * (time.time() % 1.0))
return md5crypt.md5crypt(password, salt, '$1$')