Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix send password reset mail with celery

primal100a7d95a1f4623
diff --git a/saleor/account/forms.py b/saleor/account/forms.py
index 925c7c6cee..89753b11a1 100644
--- a/saleor/account/forms.py
+++ b/saleor/account/forms.py
@@ -108,4 +108,5 @@ class PasswordResetForm(django_forms.PasswordResetForm):
def send_mail(
self, subject_template_name, email_template_name, context,
from_email, to_email, html_email_template_name=None):
+ del context['user']
emails.send_password_reset_email.delay(context, to_email)