mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Switch to use simple hashed passwords instead of per-user salt
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user