Skip to content

Commit 8ec3da2

Browse files
authored
Merge pull request #482 from PROCOLLAB-github/hotfix/reset_pass_bug
Fix reset_pass bug: wrong email
2 parents 0b0b7d8 + 76d169b commit 8ec3da2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

users/signals.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from django.core.mail import EmailMultiAlternatives
22
from django.db import transaction
3+
from django.conf import settings
34
from django.db.models.signals import post_save
45
from django.dispatch import receiver
56
from django.template.loader import render_to_string
@@ -58,7 +59,7 @@ def password_reset_token_created(sender, instance, reset_password_token, *args,
5859
msg = EmailMultiAlternatives(
5960
"Сброс пароля | Procollab",
6061
email_plaintext_message,
61-
"procollab2022@gmail.com",
62+
settings.EMAIL_USER,
6263
[reset_password_token.user.email],
6364
)
6465
msg.attach_alternative(email_html_message, "text/html")

0 commit comments

Comments
 (0)