From a8f72fab3a15120da2332c314836c1b521e9091a Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Thu, 4 Oct 2012 15:11:49 +0200 Subject: settings cleanup remove broken prefix-handler --- src/meetingtools/apps/auth/views.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/meetingtools/apps/auth') 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) -- cgit v1.1