mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Use Email header from SSOWat
This commit is contained in:
parent
765989f499
commit
7e54d9f28c
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ diff -Naur a/seahub/seahub/auth/middleware.py b/seahub/seahub/auth/middleware.py
|
||||||
" before the RemoteUserMiddleware class.")
|
" before the RemoteUserMiddleware class.")
|
||||||
try:
|
try:
|
||||||
- username = request.META[self.header]
|
- username = request.META[self.header]
|
||||||
+ username = request.META["HTTP_REMOTE_USER"] + '@' + request.META["HTTP_HOST"]
|
+ username = request.META["HTTP_EMAIL"]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
# If specified header doesn't exist then return (leaving
|
# If specified header doesn't exist then return (leaving
|
||||||
# request.user set to AnonymousUser by the
|
# request.user set to AnonymousUser by the
|
||||||
|
|
Loading…
Add table
Reference in a new issue