#16262: ValueError when authenticating
-------------------+------------------------------
Reporter: mitar | Owner: nobody
Type: Bug | Status: new
Milestone: | Component: contrib.auth
Version: 1.3 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------+------------------------------
When using additional custom authentication backend (for crypt-like
password hashes) I am getting such error from Django authentication
backend if it is first in the order:
{{{
File "/usr/lib/pymodules/python2.6/django/contrib/auth/models.py" in
check_password
40. algo, salt, hsh = enc_password.split('$')
Exception Type: ValueError at /admin/
Exception Value: too many values to unpack
}}}
This is normal, as crypt-based password hashes have one more `$` in there.
But I would like that Django backend is first so that it is tries first as
most of the users are using Django authentication backend.
I am proposing that this exception is simply catched and authentication
backend returns `None`. I am attaching a patch for this.
--
Ticket URL: <https://code.djangoproject.com/ticket/16262>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.