this was not meant to be submitted

This commit is contained in:
Matthias 2021-10-14 21:33:35 +02:00
parent 3a586af556
commit f95896e8ea
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -282,7 +282,7 @@ class CustomAccountAdapter(RegistratonMixin, DefaultAccountAdapter):
"""
def send_mail(self, template_prefix, email, context):
"""only send mail if backend configured"""
if settings.EMAIL_HOST:
if InvenTreeSetting.get_setting('EMAIL_HOST', None):
return super().send_mail(template_prefix, email, context)
return False