From 614452a323ba349b48c4daa8c40c8bc471c2ae19 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Tue, 29 Oct 2013 18:28:01 +0100 Subject: [PATCH] wiki: j'aime perdre mon temps --- wiki/auth/cas.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wiki/auth/cas.py b/wiki/auth/cas.py index e1b02d93..5ab2ec93 100644 --- a/wiki/auth/cas.py +++ b/wiki/auth/cas.py @@ -128,10 +128,10 @@ class CASAuth(BaseAuth): session_service.destroy_session(request, session) # authenticated user - #if not force and user_obj and user_obj.valid: - # if self.action == action: - # request.http_redirect(url) - # return user_obj, True + if not force and user_obj and user_obj.valid: + if self.action == action: + request.http_redirect(url) + return user_obj, True if self.ticket_path and request.method == 'POST': logoutRequest=request.form.get('logoutRequest', None)