Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bino@bino-pata:~/Documents/django/proj02$ python manage.py shell
- /home/bino/Documents/django/proj02/proj02 ('templates',)
- Python 2.7.3 (default, Aug 1 2012, 05:16:07)
- [GCC 4.6.3] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- (InteractiveConsole)
- >>>
- >>>
- >>> from django.contrib.auth.models import Permission
- >>> from l2auth.models import L2User, L2Company
- >>> from l2auth.models import *
- >>> from l2auth.backends import L2Backend
- >>>
- >>> mybackend=L2Backend()
- >>> mybackend.authenticate('dua@binonet','234')
- L2BACKEND !!!!
- Traceback (most recent call last):
- File "<console>", line 1, in <module>
- File "/home/bino/Documents/django/proj02/l2auth/backends.py", line 18, in authenticate
- if user.check_password(password):
- File "/home/bino/Documents/django/proj02/l2auth/models.py", line 246, in check_password
- return check_password(raw_password, self.password, setter)
- File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/hashers.py", line 42, in check_password
- hasher = get_hasher(algorithm)
- File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/hashers.py", line 115, in get_hasher
- "setting?" % algorithm)
- ValueError: Unknown password hashing algorithm '234'. Did you specify it in the PASSWORD_HASHERS setting?
- >>>
- >>>
Advertisement
Add Comment
Please, Sign In to add comment