Added 'Forgot Password' function.
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user