diff options
author | Leif Johansson <leifj@sunet.se> | 2011-05-13 21:33:39 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-05-13 21:33:39 +0200 |
commit | 7980ba22221c93330d4f09d5688f6ce5b113760f (patch) | |
tree | 15506d04ce3c1d2502df73ddcb1ab38371bbb656 /src/meetingtools | |
parent | dfd3b9881900d2e99374c66b8f4d19abf0d9b6f8 (diff) |
send to next after login
Diffstat (limited to 'src/meetingtools')
-rw-r--r-- | src/meetingtools/apps/auth/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/meetingtools/apps/auth/views.py b/src/meetingtools/apps/auth/views.py index cef309b..daeb09d 100644 --- a/src/meetingtools/apps/auth/views.py +++ b/src/meetingtools/apps/auth/views.py @@ -158,6 +158,8 @@ def accounts_login_federated(request): # connect_api.add_remove_member(principal.get('principal-id'),group.get('principal-id'),True) next = request.session.get("after_login_redirect", None) + if not next and request.GET.has_key('next'): + next = request.GET[''] if next is not None: return redirect_to(next) else: |