Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian New Member Process
nm.debian.org
Commits
74fa5d97
Commit
74fa5d97
authored
Mar 12, 2012
by
Enrico Zini
Browse files
Do not log out already logged out users
parent
88ad6946
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/auth.py
View file @
74fa5d97
...
...
@@ -34,7 +34,8 @@ class DACSRemoteUserMiddleware(django.contrib.auth.middleware.RemoteUserMiddlewa
# AuthenticationMiddleware).
# Actually, make really sure we are logged out!
auth
.
logout
(
request
)
if
request
.
user
.
is_authenticated
():
auth
.
logout
(
request
)
return
# If the user is already authenticated and that user is the user we are
# getting passed in the headers, then the correct user is already
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment