Opened 16 years ago
Closed 16 years ago
#10857 closed (wontfix)
redirect on existing auth in django.contrib.auth.views.login
Reported by: | radez | Owned by: | nobody |
---|---|---|---|
Component: | contrib.auth | Version: | 1.0 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
We're using the new REMOTE_USER stuff with kerb ticket forwarding. We've implemented this patch to not show the login page when auth exists, such as the case where REMOTE_USER has succeeded. Seems it would be logical to impliment even if REMOTE_USER was not used at the auth backend.
Attachments (1)
Change History (2)
by , 16 years ago
Attachment: | redirect_on_exiting_auth.diff added |
---|
comment:1 by , 16 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
This changes the behavior of the login view for everyone. Developers may be relying on being able to view the login page, even if they are already logged in.
Sounds like you should be wrapping the login view in your own view which redirects if they are already logged in (and as an aside, the patch should have been doing return HttpResponseRedirect(redirect_to)
).
redirect on existing auth in login view