-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
114 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from typing import Type | ||
|
||
from ckan.plugins.interfaces import Interface | ||
|
||
from ckanext.mailcraft.mailer import Mailer, DefaultMailer | ||
|
||
|
||
class IMailCraft(Interface): | ||
"""Allow to register a custom mailer instead of a default one""" | ||
|
||
def get_mailer(self) -> Type[Mailer]: | ||
"""Return the mailer class""" | ||
return DefaultMailer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
ckanext/mailcraft/templates/mailcraft/emails/reset_password/body.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% extends "mailcraft/emails/base.html" %} | ||
|
||
{% block main_text %} | ||
|
||
{% trans %} | ||
<p>Dear {{ user_name }},</p> | ||
|
||
<p>You have requested your password on {{ site_title }} to be reset.</p> | ||
|
||
<p>Please click the following link to confirm this request:</p> | ||
|
||
<p>{{ reset_link }}</p> | ||
|
||
<p>Have a nice day.</p> | ||
{% endtrans %} | ||
|
||
{% endblock %} |
File renamed without changes.
File renamed without changes.
20 changes: 0 additions & 20 deletions
20
ckanext/mailcraft/templates/mailcraft/emails/reset_pasword/reset_password.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.