This repository has been archived by the owner on Dec 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
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
21 changed files
with
216 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -15,6 +15,19 @@ INTERNAL_API_TOKEN="" # used for authenticating internal API requests (gives ac | |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!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> | ||
<div style="display: flex; flex-direction: column; gap: 25px; background-color: #f2f2f2; padding: 20px; border-radius: 6px; border-top: 7px solid #f29e2e; font-family: Arial, Helvetica, sans-serif; box-shadow: 0 0 5px rgba(0,0,0,.1);"> | ||
<span style="font-size: 32px; font-weight: 600;">{{ subject }}</span> | ||
<span>Hey {{ name }}!</span> | ||
{% block body %}{% endblock %} | ||
|
||
{# We include the platform brand in the _lockdown.html file as well #} | ||
{# because doing extends seems to cut-off the rest of the file. #} | ||
{% if include_lockdown %} | ||
{% extends "_lockdown.html" %} | ||
{% else %} | ||
<span>- {{ env['EMAIL_PLATFORM_BRAND'] }}</span> | ||
{% endif %} | ||
</div> | ||
</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,11 @@ | ||
Hey {{ name }}! | ||
|
||
{% block body %}{% endblock %} | ||
|
||
{# We include the platform brand in the _lockdown.txt file as well #} | ||
{# because doing extends seems to cut-off the rest of the file. #} | ||
{% if include_lockdown %} | ||
{% extends "_lockdown.txt" %} | ||
{% else %} | ||
- {{ env['EMAIL_PLATFORM_BRAND'] }} | ||
{% endif %} |
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,9 @@ | ||
<span>If you didn't request this, please click the button below within the next 24 hours to revert this change and secure your account.</span> | ||
<a | ||
href="{{ env['EMAIL_PLATFORM_FRONTEND'] }}/emails/lockdown#{{ token }}" | ||
target="_blank" | ||
style="padding: 12px; background-color: #f29e2e; border-radius: 6px; text-decoration: none; color: white; max-width: fit-content;" | ||
> | ||
<b>This wasn't me!</b> | ||
</a> | ||
<span>- {{ env['EMAIL_PLATFORM_BRAND'] }}</span> |
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,3 @@ | ||
If you didn't request this, please follow this link within the next 24 hours to revert this change and secure your account: {{ env['EMAIL_PLATFORM_FRONTEND'] }}/emails/lockdown#{{ token }} | ||
|
||
- {{ 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,4 @@ | ||
{% extends "_base.html" %} | ||
{% block body %} | ||
<span>The email on your {{ env['EMAIL_PLATFORM_NAME'] }} account was recently changed.</span> | ||
{% 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,4 @@ | ||
{% extends "_base.txt" %} | ||
{% block body %} | ||
The email on your {{ env['EMAIL_PLATFORM_NAME'] }} account was recently changed. | ||
{% 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.html" %} | ||
{% block body %} | ||
<span>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.</span> | ||
<span>You will be required to reset your password using this email address ({{ address }}) before logging back in to {{ env['EMAIL_PLATFORM_NAME'] }}.</span> | ||
<span>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>.</span> | ||
{% 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,8 @@ | ||
{% 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 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,4 @@ | ||
{% extends "_base.html" %} | ||
{% block body %} | ||
<span>A multi-factor authenticator was recently added to your {{ env['EMAIL_PLATFORM_NAME'] }} account.</span> | ||
{% 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,4 @@ | ||
{% extends "_base.txt" %} | ||
{% block body %} | ||
A multi-factor authenticator was recently added to your {{ env['EMAIL_PLATFORM_NAME'] }} account. | ||
{% 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,4 @@ | ||
{% extends "_base.html" %} | ||
{% block body %} | ||
<span>A multi-factor authenticator was recently removed from your {{ env['EMAIL_PLATFORM_NAME'] }} account.</span> | ||
{% 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,4 @@ | ||
{% extends "_base.txt" %} | ||
{% block body %} | ||
A multi-factor authenticator was recently removed from your {{ env['EMAIL_PLATFORM_NAME'] }} account. | ||
{% 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,4 @@ | ||
{% extends "_base.html" %} | ||
{% block body %} | ||
<span>The password to your {{ env['EMAIL_PLATFORM_NAME'] }} account was recently changed.</span> | ||
{% 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,4 @@ | ||
{% extends "_base.txt" %} | ||
{% block body %} | ||
The password to your {{ env['EMAIL_PLATFORM_NAME'] }} account was recently changed. | ||
{% 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,12 @@ | ||
{% extends "_base.html" %} | ||
{% block body %} | ||
<span>To reset your {{ env['EMAIL_PLATFORM_NAME'] }} account password, please click the button below.</span> | ||
<span>If you didn't request this, please ignore this email, no further action is required.</span> | ||
<a | ||
href="{{ env['EMAIL_PLATFORM_FRONTEND'] }}/emails/recovery#{{ 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> | ||
{% 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: {{ env['EMAIL_PLATFORM_FRONTEND'] }}/emails/recovery#{{ token }} | ||
|
||
If you didn't request this, please ignore this email, no further action is required. | ||
{% 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,12 @@ | ||
{% extends "_base.html" %} | ||
{% block body %} | ||
<span>To confirm adding your email address ({{ email }}) to your {{ env['EMAIL_PLATFORM_NAME'] }} account, please click the button below.</span> | ||
<span>If you didn't request this, please ignore this email, no further action is required.</span> | ||
<a | ||
href="{{ env['EMAIL_PLATFORM_FRONTEND'] }}/emails/verify#{{ token }}" | ||
target="_blank" | ||
style="padding: 12px; background-color: #f29e2e; border-radius: 6px; text-decoration: none; color: white; max-width: fit-content;" | ||
> | ||
<b>Verify Email Address</b> | ||
</a> | ||
{% 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 confirm adding your email address ({{ email }}) to your {{ env['EMAIL_PLATFORM_NAME'] }} account, please follow this link: {{ env['EMAIL_PLATFORM_FRONTEND'] }}/emails/verify#{{ token }} | ||
|
||
If you didn't request this, please ignore this email, no further action is required. | ||
{% 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
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 @@ | ||
<!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="" alt=" Logo" /> | ||
</div> | ||
<div style="display: flex; flex-direction: column; gap: 25px; background-color: #f2f2f2; padding: 20px; border-radius: 6px; border-top: 7px solid #f29e2e; font-family: Arial, Helvetica, sans-serif; box-shadow: 0 0 5px rgba(0,0,0,.1);"> | ||
<span style="font-size: 32px; font-weight: 600;">Your email has been changed</span> | ||
<span>Hey !</span> | ||
|
||
<span>The email on your account was recently changed.</span> | ||
|
||
|
||
|
||
|
||
|
||
<span>If you didn't request this, please click the button below within the next 24 hours to revert this change and secure your account.</span> | ||
<a | ||
href="/emails/lockdown#" | ||
target="_blank" | ||
style="padding: 12px; background-color: #f29e2e; border-radius: 6px; text-decoration: none; color: white; max-width: fit-content;" | ||
> | ||
<b>This wasn't me!</b> | ||
</a> | ||
<span>- Meower Media</span> |