fix: remove URL from activation email recipients list
The activation URL was mistakenly added to the EmailMessage recipients list alongside the user email. Recipients should only contain email addresses; the activation link is already passed via the template context. Fixes #560 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cc28cfb4ec
commit
1aa676fc98
1 changed files with 1 additions and 2 deletions
|
|
@ -246,8 +246,7 @@ def resend_activation_link_to_user(
|
|||
context["token"],
|
||||
activation_key,
|
||||
)
|
||||
recipients = [context["complete_url"]]
|
||||
recipients.append(user_email)
|
||||
recipients = [user_email]
|
||||
subject = "Welcome to Bottle CRM"
|
||||
html_content = render_to_string("user_status_in.html", context=context)
|
||||
if recipients:
|
||||
|
|
|
|||
Loading…
Reference in a new issue