-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from incuna/use-incuna-pigeon
Add `incuna-pigeon` to send notifications
- Loading branch information
Showing
14 changed files
with
213 additions
and
172 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
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
10 changes: 6 additions & 4 deletions
10
user_management/api/templates/user_management/account_validation_email.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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{% spaceless %}{% load i18n %}{% autoescape off %}{% blocktrans %} | ||
{% spaceless %}{% load i18n %}{% autoescape off %}{% blocktrans with name=site.name %} | ||
You are receiving this email because your email address has been used to | ||
register an account at {{ site.name }}. | ||
register an account at {{ name }}. | ||
|
||
Please click the following link to complete your registration: | ||
{% endblocktrans %} | ||
http://{{ site.domain }}/#/register/verify/{{ uid }}/{{ token }}/ | ||
{{ protocol }}://{{ site.domain }}/#/register/verify/{{ uid }}/{{ token }}/ | ||
|
||
{% endautoescape %} | ||
{% blocktrans with name=site.name %} | ||
The {{ name }} team. | ||
{% endblocktrans %}{% endautoescape %} | ||
{% endspaceless %} |
10 changes: 6 additions & 4 deletions
10
user_management/api/templates/user_management/account_validation_email.txt
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{% spaceless %}{% load i18n %}{% autoescape off %}{% blocktrans %} | ||
{% spaceless %}{% load i18n %}{% autoescape off %}{% blocktrans with name=site.name %} | ||
You are receiving this email because your email address has been used to | ||
register an account at {{ site.name }}. | ||
register an account at {{ name }}. | ||
|
||
Please click the following link to complete your registration: | ||
{% endblocktrans %} | ||
http://{{ site.domain }}/#/register/verify/{{ uid }}/{{ token }}/ | ||
{{ protocol }}://{{ site.domain }}/#/register/verify/{{ uid }}/{{ token }}/ | ||
|
||
{% endautoescape %} | ||
{% blocktrans with name=site.name %} | ||
The {{ name }} team. | ||
{% endblocktrans %}{% endautoescape %} | ||
{% endspaceless %} |
8 changes: 4 additions & 4 deletions
8
user_management/api/templates/user_management/password_reset_email.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{% spaceless %}{% load i18n %}{% autoescape off %}{% blocktrans %} | ||
{% spaceless %}{% load i18n %}{% autoescape off %}{% blocktrans with name=site.name %} | ||
You are receiving this email because you requested a password reset | ||
for your user account at {{ site.name }}. | ||
for your user account at {{ name }}. | ||
|
||
Please go to the following page and choose a new password:{% endblocktrans %} | ||
{{ protocol }}://{{ site.domain }}{% url 'user_management_api:password_reset_confirm' uidb64=uid token=token %} | ||
{% blocktrans %} | ||
The {{ site.name }} team. | ||
{% blocktrans with name=site.name %} | ||
The {{ name }} team. | ||
{% endblocktrans %}{% endautoescape %} | ||
{% endspaceless %} |
10 changes: 10 additions & 0 deletions
10
user_management/api/templates/user_management/password_reset_email.txt
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,10 @@ | ||
{% spaceless %}{% load i18n %}{% autoescape off %}{% blocktrans with name=site.name %} | ||
You are receiving this email because you requested a password reset | ||
for your user account at {{ name }}. | ||
|
||
Please go to the following page and choose a new password:{% endblocktrans %} | ||
{{ protocol }}://{{ site.domain }}{% url 'user_management_api:password_reset_confirm' uidb64=uid token=token %} | ||
{% blocktrans with name=site.name %} | ||
The {{ name }} team. | ||
{% endblocktrans %}{% endautoescape %} | ||
{% endspaceless %} |
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
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,7 @@ | ||
from user_management.utils.notifications import PasswordResetNotification | ||
|
||
|
||
class CustomPasswordResetNotification(PasswordResetNotification): | ||
"""Test setting a custom notification to alter how we send the password reset.""" | ||
text_email_template = 'my_custom_email.txt' | ||
html_email_template = None |
Oops, something went wrong.