Switch to use simple hashed passwords instead of per-user salt

This commit is contained in:
2010-06-15 15:01:50 +01:00
parent 1bfa7cb92f
commit dd69956a7c
3 changed files with 14 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ class SimpleHashModelBackend(ModelBackend):
return None
if '$' in user.password:
if user.check_password(password)
if user.check_password(password):
user.password = sha1(password).hexdigest()
user.save()
return user