Added 'Forgot Password' function.

This commit is contained in:
2018-03-08 15:36:29 +01:00
parent 13160bce7e
commit 1e4221fbf2
7 changed files with 79 additions and 4 deletions

View File

@@ -64,8 +64,6 @@ class AbstractMail(object):
raise NotImplementedError()
def send(self):
if not app_config.settings.enable_email_notifications:
return None
subject = self._get_subject()
body = self._get_body()
sender = self._sender
@@ -94,6 +92,11 @@ class AbstractEventMail(AbstractMail):
context.update(self._event.get_template_context())
return context
def send(self):
if not app_config.settings.enable_email_notifications:
return None
return super(AbstractMail, self).send()
class NewEventMail(AbstractEventMail):
_template_name = 'dav_events/emails/new_event.txt'