this was not meant to be submitted
This commit is contained in:
parent
3a586af556
commit
f95896e8ea
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue