Re: Django UnicodeDecodeError at /admin/login/

2015-01-27 Thread Human Bsd
Hi James. your hint was actually very inspiring. After concatenating 'drupal$' to the imported password, I was still unable to authenticate. Then I realized that the passwords are in unicode but the hasher considers them to be ascii, so I added : password = password.encode('ascii','ignore') at

Re: Django UnicodeDecodeError at /admin/login/

2015-01-27 Thread James Schneider
Did you read the comments on that snippet? It appears there may need to be some extra encoding/decoding needed (example additional code is listed there), which would make sense given the decoding errors you are seeing. -James On Jan 27, 2015 9:54 AM, "Supermario" wrote: > I try to implement this

Django UnicodeDecodeError at /admin/login/

2015-01-27 Thread Supermario
I try to implement this hasher in order to be able to authenticate user who are imported from drupal 7. So I put the hasher in the settings.py as follows: PASSWORD_HASHERS = ( 'myproj.drupal_hasher.DrupalPasswordHasher', #drupal hasher