mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
Merge 668a21198d into 379f888c9d
This commit is contained in:
commit
93793e66c4
1 changed files with 12 additions and 0 deletions
|
|
@ -872,6 +872,18 @@ async def add_user(
|
||||||
user.id,
|
user.id,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
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),
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
token = create_token(data={"id": user.id})
|
token = create_token(data={"id": user.id})
|
||||||
return {
|
return {
|
||||||
"token": token,
|
"token": token,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue