From e8babe62bc8e466be0367703fd062a981f5c2394 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 10 Oct 2024 12:51:00 -0700 Subject: [PATCH] refac --- backend/open_webui/apps/webui/routers/auths.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/apps/webui/routers/auths.py b/backend/open_webui/apps/webui/routers/auths.py index 563fc145f..68b86e792 100644 --- a/backend/open_webui/apps/webui/routers/auths.py +++ b/backend/open_webui/apps/webui/routers/auths.py @@ -27,6 +27,7 @@ from open_webui.utils.utils import ( create_api_key, create_token, get_admin_user, + get_verified_user, get_current_user, get_password_hash, ) @@ -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(