Skip to content

Commit

Permalink
Revert "Authentication: do not retrieve cookies when selecting account
Browse files Browse the repository at this point in the history
…rucio#4810"

This reverts commit 43f8eba.
  • Loading branch information
davidpob99 committed Sep 6, 2021
1 parent 39fff61 commit 7e16f06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rucio/web/ui/flask/common/utils.py
Expand Up @@ -20,7 +20,6 @@
# - Benedikt Ziemons <benedikt.ziemons@cern.ch>, 2021
# - Martin Barisits <martin.barisits@cern.ch>, 2021
# - Dhruv Sondhi <dhruvsondhi05@gmail.com>, 2021
# - David Población Criado <david.poblacion.criado@cern.ch>, 2021

import re
import sys
Expand Down Expand Up @@ -188,6 +187,9 @@ def select_account_name(identitystr, identity_type, vo=None):
if account_info.account_type == AccountType.USER:
def_account = account
break
selected_account = request.cookies.get('rucio-selected-account')
if (selected_account):
def_account = selected_account
ui_account = def_account
return ui_account, vo

Expand Down

0 comments on commit 7e16f06

Please sign in to comment.