Skip to content

Email address is on the unsubscribe list #34

Description

@akril7

if use

MAGICLINK_VERIFY_INCLUDE_EMAIL = True

Magiclink.generate_link add email param to query params.

Error:
in magiclink/models.py:

def send(self, request: HttpRequest) -> None:
    ...
    html = render_to_string(settings.EMAIL_TEMPLATE_NAME_HTML, context)

convert link from
http://127.0.0.1:8000/login/verify/?token=weffqwr&email=knock@gg.com
to
http://127.0.0.1:8000/login/verify/?token=weffqwr&email=knock%40gg.com
and insert it in mail.

in result link from mail is wrong.

Error from page:

Login failed
It was not possible to log you in due to:

Email address is on the unsubscribe list

for get it error, im just install and try use django-magiclink package :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions