﻿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
12233	Allow the login view to redirect an already logged in user	dmathieu	aaronbassett	"In django.contrib.auth.views.login, if a user is already logged in, he gets the log in form anyway when it'd seem logical to be able to redirect him to an other page.
The following patch adds that feature.

We can use the view in the urls.py like the following :


{{{
(r'^login$', 'django.contrib.auth.views.login', {'redirect_if_logged_in': '/'})
}}}

Then if the user goes to the login page and isn't yet logged in, he'll see the log in form.
If he goes there and is already logged in, he'll be redirected to /."	New feature	closed	contrib.auth		Normal	fixed	authentication,login	loginzdupy@… erik@… buchanae torsten@… Olivier Le Thanh Duong	Ready for checkin	1	0	0	0	0	0
