Fix Django 1.3 auth
This commit is contained in:
parent
5f4b70f3a9
commit
88dc64653e
3 changed files with 3 additions and 2 deletions
|
|
@ -10,6 +10,7 @@ try:
|
|||
from django.contrib.auth.hashers import check_password, make_password
|
||||
except ImportError:
|
||||
"""Handle older versions of Django"""
|
||||
from django.utils.hashcompat import md5_constructor, sha_constructor
|
||||
|
||||
def get_hexdigest(algorithm, salt, raw_password):
|
||||
raw_password, salt = smart_str(raw_password), smart_str(salt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue