﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16262	ValueError when authenticating	Mitar	nobody	"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."	New feature	closed	contrib.auth	1.3	Normal	fixed	auth backend	mmitar@…	Accepted	1	1	1	0	0	0
