From 2e07b6175996bb0507fb85e4235f4f003eef4f3c Mon Sep 17 00:00:00 2001 From: viega Date: Wed, 3 Jun 1998 15:36:13 +0000 Subject: The site password wasnt working because: 1) the password data file was changed to g-w (which is good) 2) the open(...) used "r+" instead of "r" (which is bad) I changed #2... --- modules/mm_security.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/mm_security.py b/modules/mm_security.py index be7f75130..51cb6a309 100644 --- a/modules/mm_security.py +++ b/modules/mm_security.py @@ -35,7 +35,7 @@ class SecurityManager: def CheckSiteAdminPassword(self, str): try: - f = open(SITE_PW_FILE, "r+") + f = open(SITE_PW_FILE, "r") pw = f.read() f.close() return mm_crypt.crypt(str, pw) == pw -- cgit v1.2.3-70-g09d2