diff options
author | Leif Johansson <leifj@sunet.se> | 2012-10-04 15:11:49 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-10-04 15:11:49 +0200 |
commit | a8f72fab3a15120da2332c314836c1b521e9091a (patch) | |
tree | e9ea77c193b7c99e65b98caf2a982f396ab83144 /src/meetingtools/apps/auth | |
parent | e6213dccb11e9b6f1111076d42032d0c0fb5b7af (diff) |
settings cleanup
remove broken prefix-handler
Diffstat (limited to 'src/meetingtools/apps/auth')
-rw-r--r-- | src/meetingtools/apps/auth/views.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/meetingtools/apps/auth/views.py b/src/meetingtools/apps/auth/views.py index e294b0c..ee23df3 100644 --- a/src/meetingtools/apps/auth/views.py +++ b/src/meetingtools/apps/auth/views.py @@ -13,9 +13,9 @@ from meetingtools.multiresponse import redirect_to, make_response_dict from meetingtools.ac import ac_api_client from django.shortcuts import render_to_response from django.contrib import auth -from django_co_connector.models import co_import_from_request, add_member,\ - remove_member +from django_co_connector.models import co_import_from_request, add_member,remove_member from meetingtools.apps.cluster.models import acc_for_user +from django.conf import settings def meta(request,attr): v = request.META.get(attr) @@ -123,6 +123,8 @@ def accounts_login_federated(request): next = request.session.get("after_login_redirect", None) if not next and request.GET.has_key('next'): next = request.GET['next'] + else: + next = settings.DEFAULT_URL acc = acc_for_user(request.user) with ac_api_client(request) as api: @@ -163,4 +165,5 @@ def accounts_login_federated(request): return redirect_to(next) else: pass - return redirect_to(next) + + return redirect_to(settings.LOGIN_URL) |