Re: [Django] #12233: Redirect logged in user

2015-11-19 Thread Django
#12233: Redirect logged in user
-+-
 Reporter:  dmathieu |Owner:
 |  aaronbassett
 Type:  New feature  |   Status:  assigned
Component:  contrib.auth |  Version:
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
  authentication,login   |
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by timgraham):

 * needs_better_patch:  0 => 1
 * stage:  Ready for checkin => Accepted


Comment:

 Left a few more comments for improvement. Please bump back to RFC when
 updated.

--
Ticket URL: 
Django 
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/066.e14390eaa2b0401bfd982b6b7d695ea0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #12233: Redirect logged in user

2015-11-12 Thread Django
#12233: Redirect logged in user
-+-
 Reporter:  dmathieu |Owner:
 |  aaronbassett
 Type:  New feature  |   Status:  assigned
Component:  contrib.auth |  Version:
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Ready for
  authentication,login   |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by carljm):

 * needs_better_patch:  1 => 0
 * stage:  Accepted => Ready for checkin
 * needs_docs:  1 => 0


--
Ticket URL: 
Django 
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/066.dc38ee011142d8f38c3bfa0a311aab81%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #12233: Redirect logged in user

2015-11-07 Thread Django
#12233: Redirect logged in user
-+-
 Reporter:  dmathieu |Owner:
 |  aaronbassett
 Type:  New feature  |   Status:  assigned
Component:  contrib.auth |  Version:
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
  authentication,login   |
Has patch:  1|  Needs documentation:  1
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-

Comment (by olethanh):

 I've updated my branch, rebased it on master, improved the documentation
 and the tests.

 Opened a PR here : https://github.com/django/django/pull/5604

--
Ticket URL: 
Django 
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/066.546795c462448825354fc16abeed%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #12233: Redirect logged in user

2014-05-31 Thread Django
#12233: Redirect logged in user
-+-
 Reporter:  dmathieu |Owner:
 Type:  New feature  |  aaronbassett
Component:  contrib.auth |   Status:  assigned
 Severity:  Normal   |  Version:
 Keywords:   |   Resolution:
  authentication,login   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  1
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-

Comment (by erikr):

 Raising an exception makes sense to me if we can't detect it earlier. The
 exception will probably produce a 500 to the user, and a useful error
 message to the end user. There should be a warning about this issue in the
 docs though.

 Could you make a proper pull request? That makes it much easier to review
 and keep track of comments. Add a reference to this ticket in the PR, and
 post the link to the PR here.

-- 
Ticket URL: 
Django 
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/066.2875ee755440479ae8aac8a17ff2efc8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #12233: Redirect logged in user

2014-05-16 Thread Django
#12233: Redirect logged in user
-+-
 Reporter:  dmathieu |Owner:
 Type:  New feature  |  aaronbassett
Component:  contrib.auth |   Status:  assigned
 Severity:  Normal   |  Version:
 Keywords:   |   Resolution:
  authentication,login   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  1
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by olethanh):

 * cc: olethanh (added)


-- 
Ticket URL: 
Django 
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/066.b2989e78eccf8807c020f93821e4f6f6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #12233: Redirect logged in user

2014-05-16 Thread Django
#12233: Redirect logged in user
-+-
 Reporter:  dmathieu |Owner:
 Type:  New feature  |  aaronbassett
Component:  contrib.auth |   Status:  assigned
 Severity:  Normal   |  Version:
 Keywords:   |   Resolution:
  authentication,login   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  1
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-

Comment (by olethanh):

 I have improved the branch a little bit and rebased it on top of master in
 https://github.com/olethanh/django/tree/ticket_12233
 I added a simple loop detection which will raise an Exception but it won't
 catch all cases and improved the docs

 Not sure what's the best way to handle this redirection problem either:

 * We could just do nothing and let the user browser  automatically detect
 it but then the admin won't know that something is wrong.
 * We cannot detect this at start time since there is no settings for the
 LOGIN_URL and a project can potentially have multiple login url.
 * We can raise an Exception if we detect it (what is currently done in my
 branch)
 * We can return a 500 if we detect it (what's was previously done in my
 branch)
 * But more importantly we don't really have a reliable way to detect it,
 my current patch won't catch redirection if they have GET parameters
 inside or if we redirect to another login url or if there is another
 redirection afterwards.

 Not sure how important this problem is since it is a corner case that will
 only happen if the settings are badly configured.

-- 
Ticket URL: 
Django 
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/066.0b1ae082ecf57a745207d80db20b5461%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #12233: Redirect logged in user

2014-01-13 Thread Django
#12233: Redirect logged in user
-+-
 Reporter:  dmathieu |Owner:
 Type:  New feature  |  aaronbassett
Component:  contrib.auth |   Status:  assigned
 Severity:  Normal   |  Version:
 Keywords:   |   Resolution:
  authentication,login   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  1
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by scel):

 * cc: torsten@… (added)


-- 
Ticket URL: 
Django 
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/066.700b1819c42b18e275423cc48708e316%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #12233: Redirect logged in user

2013-12-03 Thread Django
#12233: Redirect logged in user
-+-
 Reporter:  dmathieu |Owner:
 Type:  New feature  |  aaronbassett
Component:  contrib.auth |   Status:  assigned
 Severity:  Normal   |  Version:
 Keywords:   |   Resolution:
  authentication,login   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  1
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by buchanae):

 * cc: buchanae (added)


-- 
Ticket URL: 
Django 
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/066.2fd57886f59184e867d52845b8e5234e%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #12233: Redirect logged in user

2013-12-03 Thread Django
#12233: Redirect logged in user
-+-
 Reporter:  dmathieu |Owner:
 Type:  New feature  |  aaronbassett
Component:  contrib.auth |   Status:  assigned
 Severity:  Normal   |  Version:
 Keywords:   |   Resolution:
  authentication,login   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  1
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-

Comment (by buchanae):

 I've done some work on this here:
 https://github.com/abuchanan/django/tree/ticket_12233
 Still needs work.

 I changed the argument name to "redirect_authenticated_user" and the value
 type to Boolean (whether authenticated users should be redirected) which
 defaults to False because I figured that would be more backwards-
 compatible.

 The redirect URL would use the same mechanism as normal user login.

 I'm not sure yet how to handle a case where the redirect url is the login
 page (creating an infinite redirect loop). I guess I could chalk that up
 to user error and just let it happen.

 I've also considered that this may be cleaner as a view decorator.
 Thoughts on that?
 Something to the effect of:

 {{{
 @redirect_authenticated_user(redirect_field_name=REDIRECT_FIELD_NAME,
 redirect_url=settings.LOGIN_REDIRECT_URL)
 def your_view(request): pass
 }}}

-- 
Ticket URL: 
Django 
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/066.c501827c8b74045e7f879a616a8bd3df%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #12233: Redirect logged in user

2013-05-23 Thread Django
#12233: Redirect logged in user
-+-
 Reporter:  dmathieu |Owner:
 Type:  New feature  |  aaronbassett
Component:  contrib.auth |   Status:  assigned
 Severity:  Normal   |  Version:
 Keywords:   |   Resolution:
  authentication,login   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  1
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by aaronbassett):

 * status:  new => assigned
 * owner:  nobody => aaronbassett


-- 
Ticket URL: 
Django 
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/066.aef1dcff843aa73c25ccc32acd5217fc%40djangoproject.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #12233: Redirect logged in user

2012-06-17 Thread Django
#12233: Redirect logged in user
--+
 Reporter:  dmathieu  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  contrib.auth  |  Version:
 Severity:  Normal|   Resolution:
 Keywords:  authentication,login  | Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  0 |UI/UX:  0
--+

Comment (by kmtracey):

 Before this can go in, someone interested in the feature needs to correct
 the current patch to fix the problems !SmileyChris noted above. The
 current patch adds an arg in the middle of existing args, this is
 backwards-incompatible. We also can't make changes to the arguments to a
 documented function
 
(https://docs.djangoproject.com/en/1.4/topics/auth/#django.contrib.auth.views.login)
 without updating the docs. So, if you'd like to "bump" this ticket along,
 the way to do that would be to provide an updated patch (or pull request)
 that fixes the problems with the existing one.

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #12233: Redirect logged in user

2012-06-16 Thread Django
#12233: Redirect logged in user
--+
 Reporter:  dmathieu  |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  contrib.auth  |  Version:
 Severity:  Normal|   Resolution:
 Keywords:  authentication,login  | Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  1
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  0 |UI/UX:  0
--+

Comment (by lgp171188@…):

 Bump. If it is still not in, would love to see it in asap.

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #12233: Redirect logged in user

2011-04-25 Thread Django
#12233: Redirect logged in user
-+-
   Reporter:  dmathieu   |  Owner:  nobody
   Type:  New| Status:  new
  feature|  Component:  contrib.auth
  Milestone: |   Severity:  Normal
Version: |   Keywords:
 Resolution: |  authentication,login
   Triage Stage:  Accepted   |  Has patch:  1
Needs documentation:  1  |Needs tests:  0
Patch needs improvement:  1  |  Easy pickings:  0
-+-
Changes (by SmileyChris):

 * easy:   => 0
 * stage:  Design decision needed => Accepted


Comment:

 Small feature, but is generic enough to be useful.

-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #12233: Redirect logged in user

2011-04-01 Thread Django
#12233: Redirect logged in user
-+-
   Reporter:  dmathieu   |Owner:  nobody
   Type:  New|   Status:  new
  feature|Component:  contrib.auth
  Milestone: | Severity:  Normal
Version: | Keywords:  authentication,login
 Resolution: |Has patch:  1
   Triage Stage:  Design |  Needs tests:  0
  decision needed|
Needs documentation:  1  |
Patch needs improvement:  1  |
-+-
Changes (by mattmcc):

 * type:   => New feature
 * severity:   => Normal


-- 
Ticket URL: 
Django 
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #12233: Redirect logged in user

2010-10-25 Thread Django
#12233: Redirect logged in user
-+--
  Reporter:  dmathieu| Owner:  nobody   
   
Status:  new | Milestone:   
   
 Component:  Authentication  |   Version:   
   
Resolution:  |  Keywords:  
authentication,login
 Stage:  Design decision needed  | Has_patch:  1
   
Needs_docs:  1   |   Needs_tests:  0
   
Needs_better_patch:  1   |  
-+--
Changes (by SmileyChris):

  * stage:  Accepted => Design decision needed

Comment:

 Sorry, let me to clarify in case that wasn't clear:

 To help maintain backwards compatibility in case people are using
 positional arguments when calling the `login` function, new arguments
 should be added to the end.

 And I'm shuffling this to design decision (how it got to ready for checkin
 isn't actually in the ticket history :-/ )

-- 
Ticket URL: 
Django 
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #12233: Redirect logged in user

2010-10-25 Thread Django
#12233: Redirect logged in user
-+--
  Reporter:  dmathieu| Owner:  nobody  
Status:  new | Milestone:  
 Component:  Authentication  |   Version:  
Resolution:  |  Keywords:  authentication,login
 Stage:  Accepted| Has_patch:  1   
Needs_docs:  1   |   Needs_tests:  0   
Needs_better_patch:  1   |  
-+--
Changes (by SmileyChris):

  * needs_better_patch:  0 => 1
  * stage:  Ready for checkin => Accepted
  * version:  1.1 =>
  * needs_docs:  0 => 1

Comment:

 New arguments should be added to the end. Needs docs.

-- 
Ticket URL: 
Django 
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #12233: Redirect logged in user

2010-10-12 Thread Django
#12233: Redirect logged in user
+---
  Reporter:  dmathieu   | Owner:  nobody  
Status:  new| Milestone:  
 Component:  Authentication |   Version:  1.1 
Resolution: |  Keywords:  authentication,login
 Stage:  Ready for checkin  | Has_patch:  1   
Needs_docs:  0  |   Needs_tests:  0   
Needs_better_patch:  0  |  
+---
Changes (by anonymous):

 * cc: e...@mozilla.com (added)

-- 
Ticket URL: 
Django 
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #12233: Redirect logged in user

2009-12-14 Thread Django
#12233: Redirect logged in user
+---
  Reporter:  dmathieu   | Owner:  nobody  
Status:  new| Milestone:  
 Component:  Authentication |   Version:  1.1 
Resolution: |  Keywords:  authentication,login
 Stage:  Ready for checkin  | Has_patch:  1   
Needs_docs:  0  |   Needs_tests:  0   
Needs_better_patch:  0  |  
+---
Changes (by anonymous):

 * cc: nieproszeni...@gmail.com (removed)
 * cc: loginzd...@gmail.com (added)

-- 
Ticket URL: 
Django 
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.




Re: [Django] #12233: Redirect logged in user

2009-12-14 Thread Django
#12233: Redirect logged in user
+---
  Reporter:  dmathieu   | Owner:  nobody  
Status:  new| Milestone:  
 Component:  Authentication |   Version:  1.1 
Resolution: |  Keywords:  authentication,login
 Stage:  Ready for checkin  | Has_patch:  1   
Needs_docs:  0  |   Needs_tests:  0   
Needs_better_patch:  0  |  
+---
Changes (by nieproszenieja):

 * cc: nieproszeni...@gmail.com (added)

-- 
Ticket URL: 
Django 
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.




Re: [Django] #12233: Redirect logged in user

2009-12-13 Thread Django
#12233: Redirect logged in user
+---
  Reporter:  dmathieu   | Owner:  nobody  
Status:  new| Milestone:  
 Component:  Authentication |   Version:  1.1 
Resolution: |  Keywords:  authentication,login
 Stage:  Ready for checkin  | Has_patch:  1   
Needs_docs:  0  |   Needs_tests:  0   
Needs_better_patch:  0  |  
+---
Comment (by nieproszenieja):

 I agree with dmathieu - authenticated user shouldn't be able to see the
 login form. But in opposite to the given patch, I think that redirection
 should be mandatory (and as simple as possible, while this is the default
 authentication system) - in default case, user should be redirected to
 LOGIN_REDIRECT_URL (or if not set, to accounts/profile).

 ===
 Implementation:

 if request.user.is_authenticated():
   return HttpResponseRedirect(LOGIN_REDIRECT_URL)

 + in the documentation one simple information - If authenticated user
 tries to access to the login view, it will be redirected to
 LOGIN_REDIRECT_URL.

 I think it will be enough for a default authentication system.
 ==

 P.S. What is the status of the patch? Will it be included in next
 releases?

-- 
Ticket URL: 
Django 
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.




[Django] #12233: Redirect logged in user

2009-11-17 Thread Django
#12233: Redirect logged in user
+---
   Reporter:  dmathieu  |Owner:  nobody   
 Status:  new   |Milestone:   
  Component:  Authentication|  Version:  1.1  
   Keywords:  authentication,login  |Stage:  Ready for checkin
  Has_patch:  1 |   Needs_docs:  0
Needs_tests:  0 |   Needs_better_patch:  0
+---
 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 /.

-- 
Ticket URL: 
Django 
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 django-upda...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=.