#10857: redirect on existing auth in django.contrib.auth.views.login
-------------------------------------+--------------------------------------
          Reporter:  radez           |         Owner:  nobody
            Status:  closed          |     Milestone:        
         Component:  Authentication  |       Version:  1.0   
        Resolution:  wontfix         |      Keywords:        
             Stage:  Unreviewed      |     Has_patch:  1     
        Needs_docs:  0               |   Needs_tests:  0     
Needs_better_patch:  0               |  
-------------------------------------+--------------------------------------
Changes (by SmileyChris):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => wontfix
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 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)`).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10857#comment:1>
Django <http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to