Skip to content

Possible bug in send_email_to_reset_password recipients list #560

@Alma252

Description

@Alma252

Hi 👋
I was reading through the tasks.py code and noticed something that might be a bug.

In send_email_to_reset_password, the recipients list is created like this:

recipients = []
recipients.append(user_email)
context["complete_url"] = ...
recipients.append(context["complete_url"])   # <- possible issue?

So the reset URL is also being added to the recipients list, which doesn’t seem correct,
because recipients should only contain email addresses.

Expected behavior:
recipients = [user_email]

But right now, it looks like the reset link is mistakenly added as another recipient.

Could you please check if this is intentional or a bug? 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions