Skip to content

Commit

Permalink
Updated QueryAccountInfos API
Browse files Browse the repository at this point in the history
  • Loading branch information
SBriere committed Dec 2, 2021
1 parent 2b38b90 commit 5a78bd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Backend/API/QueryAccountInfos.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def get(self):
if current_login_type == LoginType.USER_LOGIN:
user = current_user_client.get_user_info()
account_infos['user'] = user
account_infos['username'] = user[0]['user_username']
account_infos.update({'sites': user[0]['sites']})
account_infos['username'] = user['user_username']
account_infos.update({'sites': user['sites']})
account_infos['login_type'] = 'user'
account_infos['login_id'] = current_user_client.id_user
account_infos['login_uuid'] = current_user_client.user_uuid
Expand Down

0 comments on commit 5a78bd2

Please sign in to comment.