Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: correct invite url (#1173)

Matrifc68c8179181
diff --git a/api/services/account_service.py b/api/services/account_service.py
index 0f5dfcf0f96..f507664be47 100644
--- a/api/services/account_service.py
+++ b/api/services/account_service.py
@@ -408,7 +408,6 @@ class RegisterService:
to=email,
token=token,
inviter_name=inviter.name if inviter else 'Dify',
- workspace_id=tenant.id,
workspace_name=tenant.name,
)
diff --git a/api/tasks/mail_invite_member_task.py b/api/tasks/mail_invite_member_task.py
index 907e62731e3..b3e38432b69 100644
--- a/api/tasks/mail_invite_member_task.py
+++ b/api/tasks/mail_invite_member_task.py
@@ -9,16 +9,15 @@ from extensions.ext_mail import mail
@shared_task(queue='mail')
-def send_invite_member_mail_task(to: str, token: str, inviter_name: str, workspace_id: str, workspace_name: str):
+def send_invite_member_mail_task(to: str, token: str, inviter_name: str, workspace_name: str):
"""
Async Send invite member mail
:param to
:param token
:param inviter_name
- :param workspace_id
:param workspace_name
- Usage: send_invite_member_mail_task.delay(to, token, inviter_name, workspace_id, workspace_name)
+ Usage: send_invite_member_mail_task.delay(to, token, inviter_name, workspace_name)
"""
if not mail.is_inited():
return
@@ -36,12 +35,7 @@ def send_invite_member_mail_task(to: str, token: str, inviter_name: str, workspa
<p>Click <a href="{url}">here</a> to join.</p>
<p>Thanks,</p>
<p>Dify Team</p>""".format(inviter_name=inviter_name, workspace_name=workspace_name,
- url='{}/activate?workspace_id={}&email={}&token={}'.format(
- current_app.config.get("CONSOLE_WEB_URL"),
- workspace_id,
- to,
- token)
- )
+ url=f'{current_app.config.get("CONSOLE_WEB_URL")}/activate?token={token}')
)
end_at = time.perf_counter()