Skip to content

Commit

Permalink
Merge pull request #754 from p-l-/fix-web-get_user
Browse files Browse the repository at this point in the history
Web: fix username retrieval
  • Loading branch information
p-l- committed Aug 22, 2019
2 parents 457c563 + 26d40c4 commit 874b5d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ivre/web/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
HAVE_MYSQL = False


from bottle import request
from future.utils import viewitems
from past.builtins import basestring

Expand Down Expand Up @@ -151,7 +152,7 @@ def get_user():
"""Return the connected user.
"""
return os.getenv('REMOTE_USER')
return request.environ.get('REMOTE_USER')


def get_anonymized_user():
Expand Down

0 comments on commit 874b5d2

Please sign in to comment.