disable password reset if no mail is set

This commit is contained in:
vabene1111
2021-05-28 18:41:30 +02:00
parent 71fdfe6acb
commit 46a8a9f60d
5 changed files with 26 additions and 17 deletions

View File

@@ -16,7 +16,7 @@ class AllAuthCustomAdapter(DefaultAccountAdapter):
# disable password reset for now
def send_mail(self, template_prefix, email, context):
if settings.EMAIL_HOST == '':
if settings.EMAIL_HOST != '':
super(AllAuthCustomAdapter, self).send_mail(template_prefix, email, context)
else:
pass