Skip to content

Commit

Permalink
username
Browse files Browse the repository at this point in the history
  • Loading branch information
NotChristianGarcia committed Nov 23, 2024
1 parent ff3f579 commit d3abe10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions service/api_pods_podid_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,9 @@ def is_logged_in(cookies):
If so: return True, username, roles
Otherwise: return False, None, None
"""
if 'username' in cookies:
return True, cookies['username'], cookies['roles']
logger.debug(f"Checking if logged in: {cookies}")
if 'X-Tapis-Username' in cookies:
return True, cookies['X-Tapis-Username'], cookies['roles']
return False, None, None


Expand Down

0 comments on commit d3abe10

Please sign in to comment.