mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Undelete the login() call inadvertantly removed in 4e0a2fe59c
Refs #21271.
This commit is contained in:
@@ -56,6 +56,8 @@ class EmailBackend(BaseEmailBackend):
|
||||
self.connection.ehlo()
|
||||
self.connection.starttls()
|
||||
self.connection.ehlo()
|
||||
if self.username and self.password:
|
||||
self.connection.login(self.username, self.password)
|
||||
except smtplib.SMTPException:
|
||||
if not self.fail_silently:
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user