From 85b46c6ba6e546600c9cbc6e8a6b606d07f267fa Mon Sep 17 00:00:00 2001 From: "l.gabrysiak" Date: Sat, 1 Mar 2025 20:13:39 +0100 Subject: [PATCH] mod auth --- backend/open_webui/models/auths.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/models/auths.py b/backend/open_webui/models/auths.py index e84d075..fe14984 100644 --- a/backend/open_webui/models/auths.py +++ b/backend/open_webui/models/auths.py @@ -209,8 +209,14 @@ class AuthsTable: "name": name }) db.commit() - return True if result == 1 else False - except Exception: + if result == 1: + print(f"User profile updated successfully: id={id}, name={name}") + return True + else: + print(f"Failed to update user profile: id={id}, name={name}") + return False + except Exception as e: + print(f"Error updating user profile: {e}") return False