diff --git a/Backend/API/QueryAccountInfos.py b/Backend/API/QueryAccountInfos.py index ae0bb84..5136e7c 100644 --- a/Backend/API/QueryAccountInfos.py +++ b/Backend/API/QueryAccountInfos.py @@ -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