From 1e3984e3f19352624fcd6f789249384fb73b89bf Mon Sep 17 00:00:00 2001 From: SszgwDk <2664407884@qq.com> Date: Fri, 13 Dec 2024 21:37:44 +0800 Subject: [PATCH] Update backend/app/auth/users.py Co-authored-by: sykp241095 --- backend/app/auth/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/auth/users.py b/backend/app/auth/users.py index 21e35af3..34b72b9a 100644 --- a/backend/app/auth/users.py +++ b/backend/app/auth/users.py @@ -166,7 +166,7 @@ async def update_user_password( try: async with get_user_db_context(session) as user_db: async with get_user_manager_context(user_db) as user_manager: - user = await user_manager.get(id) + user = await user_manager.get(user_id) if not user: raise UserNotExists(f"User {id} does not exist")