Parcourir la source

removed password utf8 decode when hashing the password. to be checked later

prodserver il y a 11 ans
Parent
révision
14a244a6a9
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      pboard/pboard/model/auth.py

+ 2 - 1
pboard/pboard/model/auth.py Voir le fichier

@@ -121,7 +121,8 @@ class User(DeclarativeBase):
121 121
 
122 122
         # Make sure the hashed password is a unicode object at the end of the
123 123
         # process because SQLAlchemy _wants_ unicode objects for Unicode cols
124
-        password = password.decode('utf-8')
124
+        # FIXME - D.A. - 2013-11-20 - The following line has been removed since using python3. Is this normal ?!
125
+        # password = password.decode('utf-8')
125 126
 
126 127
         return password
127 128