We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, after upgrading to Django 1.6.2, registration-me produced an error:
ImportError at /accounts/login
cannot import UNUSABLE_PASSWORD
A solution was to change registration/forms.py and replace
from django.contrib.auth.hashers import UNUSABLE_PASSWORD
with from django.contrib.auth.hashers import UNUSABLE_PASSWORD_PREFIX
And change in PasswordResetForm:
if self.users_cache.filter(password=UNUSABLE_PASSWORD).count():
to
if self.users_cache.filter(password__startswith=UNUSABLE_PASSWORD_PREFIX).count():
I wonder if this is a good solution?
The text was updated successfully, but these errors were encountered:
Looks like it could be acceptable. Thank you for your suggestion.
Sorry, something went wrong.
No branches or pull requests
Hi, after upgrading to Django 1.6.2, registration-me produced an error:
ImportError at /accounts/login
cannot import UNUSABLE_PASSWORD
A solution was to change registration/forms.py and replace
from django.contrib.auth.hashers import UNUSABLE_PASSWORD
with
from django.contrib.auth.hashers import UNUSABLE_PASSWORD_PREFIX
And change in PasswordResetForm:
if self.users_cache.filter(password=UNUSABLE_PASSWORD).count():
to
if self.users_cache.filter(password__startswith=UNUSABLE_PASSWORD_PREFIX).count():
I wonder if this is a good solution?
The text was updated successfully, but these errors were encountered: