#18161: Redirection after successful login is not working properly
---------------------------------+------------------------------------
     Reporter:  wolfgang.doll@…  |                    Owner:  apollo13
         Type:  Bug              |                   Status:  closed
    Component:  contrib.admin    |                  Version:  1.4
     Severity:  Normal           |               Resolution:  wontfix
     Keywords:                   |             Triage Stage:  Accepted
    Has patch:  1                |      Needs documentation:  0
  Needs tests:  1                |  Patch needs improvement:  0
Easy pickings:  1                |                    UI/UX:  0
---------------------------------+------------------------------------
Changes (by carljm):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 I agree with ramiro.

 I think the way the admin login works is odd; it would be better if it had
 its own dedicated URL and used redirects and a `?next` parameter (the way
 a `django.contrib.auth` login page typically works), rather than
 displaying the login form directly at any admin URL. A ticket/patch to
 change that behavior fully I would find interesting (and would also have
 the side effect of making the admin login more easily reusable as a
 sitewide login in simple cases).

 But this patch is a half-measure that makes no sense within the context of
 how the admin login is intended to work, it's only useful if you're
 abusing the admin login by accessing a URL that doesn't actually exist
 ('/admin/login/' - may as well be '/admin/foobar/', it would work the
 same) and then expecting to be able to redirect somewhere else from there.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18161#comment:15>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/078.ba0065ca38d7f16f3efacfb31a2f5073%40djangoproject.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to