changeset 3821:3433428abe41

user: work around bad semantics in user class constructor somebody please refactor this code completely!
author Johannes Berg <johannes AT sipsolutions DOT net>
date Tue, 08 Jul 2008 16:58:19 +0200
parents 2f2c95506713
children b209aea96826 d9de4fa12f23
files MoinMoin/user.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/user.py	Tue Jul 08 13:30:27 2008 +0200
+++ b/MoinMoin/user.py	Tue Jul 08 16:58:19 2008 +0200
@@ -309,7 +309,8 @@
 
         self.recoverpass_key = ""
 
-        self.enc_password = ""
+        if password:
+            self.enc_password = encodePassword(password)
 
         #self.edit_cols = 80
         self.tz_offset = int(float(self._cfg.tz_offset) * 3600)