diff --git a/src/backend/langflow/api/v1/users.py b/src/backend/langflow/api/v1/users.py index 1c464ec4c..4b1b936d4 100644 --- a/src/backend/langflow/api/v1/users.py +++ b/src/backend/langflow/api/v1/users.py @@ -98,7 +98,7 @@ def patch_user( raise HTTPException( status_code=403, detail="You don't have the permission to update this user" ) - if user.password: + if user_update.password: raise HTTPException( status_code=400, detail="You can't change your password here" )