﻿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
24855	Allow the use of django.contrib.auth.login without credentials (authentication)	Paulo Gabriel Poiati	Paulo Gabriel Poiati	"As it is we need to call `authenticate` before `login` because we need to set the authentication backend in the user model. We can use login without authenticate if we set the backend attr manually, but this need some implementation knowledge of how authentication works.

The proposal is to change the `login` function signature to:

`login(request, user, backend=None)`

The following rules will apply:

1. Use the value of the `backend` argument, if provided.
2. Use the value of the `user.backend` annotation, if present.
3. Use the only configured backend, if there is only one.
4. Raise ValueError(""You have multiple authentication backends configured; you must provide the backend argument to login."") otherwise.

More information can be found in the mailing list topic: 

https://groups.google.com/forum/#!topic/django-developers/_I0BW5L7Z58
"	New feature	closed	contrib.auth	dev	Normal	fixed			Accepted	1	0	0	0	0	0
