From 23461332b916e53f1c6ec3661975565ca3394d8e Mon Sep 17 00:00:00 2001 From: Fabian Fischer Date: Fri, 25 Oct 2024 09:44:03 +0200 Subject: [PATCH] fix: boolean values don't need to be accessed by .value --- backend/open_webui/utils/oauth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/utils/oauth.py b/backend/open_webui/utils/oauth.py index 17b0c4fe0..722b1ea73 100644 --- a/backend/open_webui/utils/oauth.py +++ b/backend/open_webui/utils/oauth.py @@ -162,7 +162,7 @@ class OAuthManager: if not user: # If the user does not exist, check if merging is enabled - if auth_manager_config.OAUTH_MERGE_ACCOUNTS_BY_EMAIL.value: + if auth_manager_config.OAUTH_MERGE_ACCOUNTS_BY_EMAIL: # Check if the user exists by email user = Users.get_user_by_email(email) if user: @@ -176,7 +176,7 @@ class OAuthManager: if not user: # If the user does not exist, check if signups are enabled - if auth_manager_config.ENABLE_OAUTH_SIGNUP.value: + if auth_manager_config.ENABLE_OAUTH_SIGNUP: # Check if an existing user with the same email already exists existing_user = Users.get_user_by_email( user_data.get("email", "").lower()