mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 21:09:48 +02:00
refac
This commit is contained in:
@@ -203,7 +203,7 @@ async def get_session_user(
|
||||
|
||||
user_permissions = await get_permissions(user.id, request.app.state.config.USER_PERMISSIONS, db=db)
|
||||
|
||||
return {
|
||||
response_data = {
|
||||
'token': token,
|
||||
'token_type': 'Bearer',
|
||||
'expires_at': expires_at,
|
||||
@@ -221,6 +221,8 @@ async def get_session_user(
|
||||
'permissions': user_permissions,
|
||||
}
|
||||
|
||||
return response_data
|
||||
|
||||
|
||||
############################
|
||||
# Update Profile
|
||||
|
||||
Reference in New Issue
Block a user