Skip to content

Commit

Permalink
refac
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed Oct 10, 2024
1 parent caeca9d commit e8babe6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/open_webui/apps/webui/routers/auths.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
create_api_key,
create_token,
get_admin_user,
get_verified_user,
get_current_user,
get_password_hash,
)
Expand Down Expand Up @@ -71,7 +72,7 @@ async def get_session_user(

@router.post("/update/profile", response_model=UserResponse)
async def update_profile(
form_data: UpdateProfileForm, session_user=Depends(get_current_user)
form_data: UpdateProfileForm, session_user=Depends(get_verified_user)
):
if session_user:
user = Users.update_user_by_id(
Expand Down

0 comments on commit e8babe6

Please sign in to comment.