diff --git a/backend/open_webui/routers/auths.py b/backend/open_webui/routers/auths.py index 6d2349f89f..af0e455146 100644 --- a/backend/open_webui/routers/auths.py +++ b/backend/open_webui/routers/auths.py @@ -522,6 +522,18 @@ async def ldap_auth( db=db, ) + if request.app.state.config.WEBHOOK_URL: + await post_webhook( + request.app.state.WEBUI_NAME, + request.app.state.config.WEBHOOK_URL, + WEBHOOK_MESSAGES.USER_SIGNUP(user.name), + { + 'action': 'signup', + 'message': WEBHOOK_MESSAGES.USER_SIGNUP(user.name), + 'user': user.model_dump_json(exclude_none=True), + }, + ) + except HTTPException: raise except Exception as err: diff --git a/backend/open_webui/routers/users.py b/backend/open_webui/routers/users.py index 04be89c92f..2d204ac18f 100644 --- a/backend/open_webui/routers/users.py +++ b/backend/open_webui/routers/users.py @@ -193,6 +193,7 @@ class SharingPermissions(BaseModel): public_skills: bool = False notes: bool = False public_notes: bool = True + public_chats: bool = False class AccessGrantsPermissions(BaseModel):