From 10b56a4a3ec1abbfe6fc9942b89007d87863c7d8 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Tue, 11 Jun 2013 11:31:50 +0200 Subject: [PATCH] [wiki/auth/cas] Redirection vers la page courante si tentative de login inutile --- wiki/auth/cas.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wiki/auth/cas.py b/wiki/auth/cas.py index 6a57db06..1734c412 100644 --- a/wiki/auth/cas.py +++ b/wiki/auth/cas.py @@ -128,6 +128,8 @@ class CASAuth(BaseAuth): # 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 self.ticket_path and request.method == 'POST':