[wiki/auth/cas] Redirection vers la page courante si tentative de login inutile
This commit is contained in:
parent
bd4bc8ba1b
commit
10b56a4a3e
1 changed files with 2 additions and 0 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue