forked from doccano/doccano
-
Notifications
You must be signed in to change notification settings - Fork 3
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 doccano#504 from CatalystCode/enhancement/verifica…
…tion-emails-on-azure Enhancement/Verification emails on Azure
- Loading branch information
Showing
4 changed files
with
67 additions
and
11 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 |
---|---|---|
|
@@ -296,12 +296,12 @@ | |
'endpoint': env('AZURE_APPINSIGHTS_ENDPOINT', None), | ||
} | ||
|
||
## necessary for email verification setup | ||
# EMAIL_USE_TLS = True | ||
# EMAIL_HOST = 'smtp.gmail.com' | ||
# EMAIL_HOST_USER = '[email protected]' | ||
# EMAIL_HOST_PASSWORD = 'gfds6jk#4ljIr%G8%' | ||
# EMAIL_PORT = 587 | ||
# | ||
## During development only | ||
# EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' | ||
# necessary for email verification of new accounts | ||
EMAIL_USE_TLS = env.bool('EMAIL_USE_TLS', False) | ||
EMAIL_HOST = env('EMAIL_HOST', None) | ||
EMAIL_HOST_USER = env('EMAIL_HOST_USER', None) | ||
EMAIL_HOST_PASSWORD = env('EMAIL_HOST_PASSWORD', None) | ||
EMAIL_PORT = env.int('EMAIL_PORT', 587) | ||
|
||
if not EMAIL_HOST: | ||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' |
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,5 +1,5 @@ | ||
{% autoescape off %} | ||
Hi {{ user.username }}, | ||
Please click on the link to confirm your email, | ||
http://{{ domain }}{% url 'activate' uidb64=uid token=token %} | ||
Please click on the link to confirm your email and activate your Doccano account: | ||
{{ scheme }}://{{ domain }}{% url 'activate' uidb64=uid token=token %} | ||
{% endautoescape %} |
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