From e4c1823799e5ff42b02f6e2541461a8378f4e8e8 Mon Sep 17 00:00:00 2001 From: "l.gabrysiak" Date: Sat, 1 Mar 2025 20:07:34 +0100 Subject: [PATCH] mod auth --- backend/open_webui/models/auths.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/open_webui/models/auths.py b/backend/open_webui/models/auths.py index 32dcb01..e84d075 100644 --- a/backend/open_webui/models/auths.py +++ b/backend/open_webui/models/auths.py @@ -202,13 +202,11 @@ class AuthsTable: except Exception: return False - def update_user_profile(self, id: str, name: str, profile_image_url: str, role: str) -> bool: + def update_user_profile(self, id: str, name: str) -> bool: try: with get_db() as db: result = db.query(Auth).filter_by(id=id).update({ - "name": name, - "profile_image_url": profile_image_url, - "role": role + "name": name }) db.commit() return True if result == 1 else False