diff --git a/backend/open_webui/utils/oauth.py b/backend/open_webui/utils/oauth.py index a7f40971b..70d130804 100644 --- a/backend/open_webui/utils/oauth.py +++ b/backend/open_webui/utils/oauth.py @@ -57,7 +57,6 @@ auth_manager_config.OAUTH_ALLOWED_ROLES = OAUTH_ALLOWED_ROLES auth_manager_config.OAUTH_ADMIN_ROLES = OAUTH_ADMIN_ROLES auth_manager_config.OAUTH_ALLOWED_DOMAINS = OAUTH_ALLOWED_DOMAINS auth_manager_config.WEBHOOK_URL = WEBHOOK_URL -auth_manager_config.WEBHOOK_MESSAGES = WEBHOOK_MESSAGES auth_manager_config.JWT_EXPIRES_IN = JWT_EXPIRES_IN @@ -296,12 +295,10 @@ class OAuthManager: if auth_manager_config.WEBHOOK_URL: post_webhook( auth_manager_config.WEBHOOK_URL, - auth_manager_config.WEBHOOK_MESSAGES.USER_SIGNUP(user.name), + WEBHOOK_MESSAGES.USER_SIGNUP(user.name), { "action": "signup", - "message": auth_manager_config.WEBHOOK_MESSAGES.USER_SIGNUP( - user.name - ), + "message": WEBHOOK_MESSAGES.USER_SIGNUP(user.name), "user": user.model_dump_json(exclude_none=True), }, )