MCPcopy
hub / github.com/bugsink/bugsink / send_reset_email

Function send_reset_email

users/tasks.py:24–34  ·  view source on GitHub ↗
(email, token)

Source from the content-addressed store, hash-verified

22
23@shared_task
24def send_reset_email(email, token):
25 send_rendered_email(
26 subject="Reset your password",
27 base_template_name="mails/reset_password_email",
28 recipient_list=[email],
29 context={
30 "site_title": get_settings().SITE_TITLE,
31 "base_url": get_settings().BASE_URL + "/",
32 "reset_url": get_settings().BASE_URL + reverse("reset_password", kwargs={"token": token}),
33 },
34 )
35
36
37@shared_task

Callers

nothing calls this directly

Calls 2

send_rendered_emailFunction · 0.90
get_settingsFunction · 0.90

Tested by

no test coverage detected