mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
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):
|
def send_mail(self, template_prefix, email, context):
|
||||||
"""only send mail if backend configured"""
|
"""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 super().send_mail(template_prefix, email, context)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user