-
Notifications
You must be signed in to change notification settings - Fork 15
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 #293 from meower-media/tnix-emails
Account emails
- Loading branch information
Showing
27 changed files
with
1,239 additions
and
270 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 |
---|---|---|
|
@@ -11,9 +11,24 @@ API_ROOT= | |
INTERNAL_API_ENDPOINT="http://127.0.0.1:3001" # used for proxying CL3 commands | ||
INTERNAL_API_TOKEN="" # used for authenticating internal API requests (gives access to any account, meant to be used by CL3) | ||
|
||
SENTRY_DSN= | ||
|
||
CAPTCHA_SITEKEY= | ||
CAPTCHA_SECRET= | ||
|
||
EMAIL_SMTP_HOST= | ||
EMAIL_SMTP_PORT= | ||
EMAIL_SMTP_TLS= | ||
EMAIL_SMTP_USERNAME= | ||
EMAIL_SMTP_PASSWORD= | ||
EMAIL_FROM_NAME= | ||
EMAIL_FROM_ADDRESS= | ||
EMAIL_PLATFORM_NAME="Meower" | ||
EMAIL_PLATFORM_LOGO="" | ||
EMAIL_PLATFORM_BRAND="Meower Media" | ||
EMAIL_PLATFORM_FRONTEND="https://meower.org" | ||
EMAIL_PLATFORM_SUPPORT="[email protected]" | ||
|
||
GRPC_AUTH_ADDRESS="0.0.0.0:5000" | ||
GRPC_AUTH_TOKEN= | ||
|
||
|
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,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<div style="width: 720px; margin-left: auto; margin-right: auto; color: black;"> | ||
<div style="width: max-content; margin-left: auto; margin-right: auto; padding-bottom: 25px;"> | ||
<img src="{{ env['EMAIL_PLATFORM_LOGO'] }}" alt="{{ env['EMAIL_PLATFORM_NAME'] }} Logo" /> | ||
</div> | ||
<table style="width: 100%; background-color: #f2f2f2; padding: 20px; border-radius: 6px; border-top: 7px solid #f29e2e; font-family: Arial, Helvetica, sans-serif; font-size: 16px; box-shadow: 0 0 5px rgba(0,0,0,.1);"> | ||
<tr> | ||
<td style="font-size: 32px; font-weight: 600; padding-bottom: 12px;">{{ subject }}</td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="padding-bottom: 12px;">Hey {{ name }}!</td> | ||
</tr> | ||
|
||
{% block body %}{% endblock %} | ||
|
||
<tr> | ||
<td style="padding-bottom: 12px;">- {{ env['EMAIL_PLATFORM_BRAND'] }}</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</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,5 @@ | ||
Hey {{ name }}! | ||
|
||
{% block body %}{% endblock %} | ||
|
||
- {{ env['EMAIL_PLATFORM_BRAND'] }} |
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,26 @@ | ||
{% extends "_base.html" %} | ||
{% block body %} | ||
<tr> | ||
<td style="padding-bottom: 12px;"> | ||
Your {{ env['EMAIL_PLATFORM_NAME'] }} account has been locked because we believe it may have been compromised. This can happen if your {{ env['EMAIL_PLATFORM_NAME'] }} password is weak, you used the same password on another website and that website was hacked, or you accidentally gave an access token to someone else. | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="padding-bottom: 12px;"> | ||
You will be required to reset your password using this email address (<a href="mailto:{{ address }}" target="_blank" style="color: black;">{{ address }}</a>) before logging back in to {{ env['EMAIL_PLATFORM_NAME'] }}. | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="padding-bottom: 24px;"> | ||
If you had multi-factor authentication enabled, it has been temporarily disabled as a precaution, in case it was modified by someone attempting to lock you out of your account. | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="padding-bottom: 24px;"> | ||
If you have any questions, please reach out to <a href="mailto:{{ env['EMAIL_PLATFORM_SUPPORT'] }}" target="_blank" style="color: black;">{{ env['EMAIL_PLATFORM_SUPPORT'] }}</a>. | ||
</td> | ||
</tr> | ||
{% endblock %} |
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 @@ | ||
{% extends "_base.txt" %} | ||
{% block body %} | ||
Your {{ env['EMAIL_PLATFORM_NAME'] }} account has been locked because we believe it may have been compromised. This can happen if your {{ env['EMAIL_PLATFORM_NAME'] }} password is weak, you used the same password on another website and that website was hacked, or you accidentally gave an access token to someone else. | ||
|
||
You will be required to reset your password using this email address ({{ address }}) before logging back in to {{ env['EMAIL_PLATFORM_NAME'] }}. | ||
|
||
If you had multi-factor authentication enabled, it has been temporarily disabled as a precaution, in case it was modified by someone attempting to lock you out of your account. | ||
|
||
If you have any questions, please reach out to {{ env['EMAIL_PLATFORM_SUPPORT'] }}. | ||
{% endblock %} |
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,30 @@ | ||
{% extends "_base.html" %} | ||
{% block body %} | ||
<tr> | ||
<td style="padding-bottom: 12px;"> | ||
To reset your {{ env['EMAIL_PLATFORM_NAME'] }} account password, please click the button below. | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="padding-bottom: 24px;"> | ||
If you didn't request this, please ignore this email, no further action is required. | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="padding-bottom: 12px;"><i>This link will expire in 30 minutes.</i></td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="padding-bottom: 28px;"> | ||
<a | ||
href="{{ env['EMAIL_PLATFORM_FRONTEND'] }}/emails/recover#{{ token }}" | ||
target="_blank" | ||
style="padding: 12px; background-color: #f29e2e; border-radius: 6px; text-decoration: none; color: white; max-width: fit-content;" | ||
> | ||
<b>Reset Password</b> | ||
</a> | ||
</td> | ||
</tr> | ||
{% endblock %} |
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,6 @@ | ||
{% extends "_base.txt" %} | ||
{% block body %} | ||
To reset your {{ env['EMAIL_PLATFORM_NAME'] }} account password, please follow this link (this link will expire in 30 minutes): {{ env['EMAIL_PLATFORM_FRONTEND'] }}/emails/recover#{{ token }} | ||
|
||
If you didn't request this, please ignore this email, no further action is required. | ||
{% endblock %} |
Oops, something went wrong.