Module: check_mk
Branch: master
Commit: 59f3ba21d835df77e793729e36d57e3aca1b27c6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=59f3ba21d835df…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Feb 14 12:40:29 2012 +0100
Added newline to auth.secret file
---
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 a1a3f8c..670046e 100644
--- a/web/htdocs/login.py
+++ b/web/htdocs/login.py
@@ -75,7 +75,7 @@ def load_secret():
secret_path = '%s/auth.secret' % os.path.dirname(defaults.htpasswd_file)
if not os.path.exists(secret_path):
secret = md5.md5(str(time.time())).hexdigest()
- file(secret_path, 'w').write(secret)
+ file(secret_path, 'w').write(secret + "\n")
else:
secret = file(secret_path).read().strip()
return secret