Ticket #3316: models.py.patch
File models.py.patch, 471 bytes (added by , 18 years ago) |
---|
-
./models.py
old new 17 17 elif algo == 'sha1': 18 18 import sha 19 19 return hsh == sha.new(salt+raw_password).hexdigest() 20 elif algo == 'crypt': # axiak addition 21 import crypt 22 return hsh == crypt.crypt(raw_password, salt) 20 23 raise ValueError, "Got unknown password algorithm type in password." 21 24 22 25 class SiteProfileNotAvailable(Exception):