Add email relay credentials

This commit is contained in:
Tanner Collin 2020-06-19 23:49:05 +00:00
parent e70e312843
commit 00bcf3fee7
2 changed files with 14 additions and 0 deletions

View File

@ -51,6 +51,12 @@ DOOR_CODE = ''
WIFI_PASS = ''
MINECRAFT = ''
# Portal Email Credentials
# For sending password resets, etc.
EMAIL_USER = ''
EMAIL_PASS = ''
# Backup API tokens
# These tokens allow each user to download a backup of member data.
# Don't mess up the data structure!

View File

@ -258,6 +258,14 @@ OLD_PASSWORD_FIELD_ENABLED = True
LOGOUT_ON_PASSWORD_CHANGE = False
ACCOUNT_PRESERVE_USERNAME_CASING = False
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp-relay.gmail.com'
EMAIL_PORT = '587'
EMAIL_HOST_USER = secrets.EMAIL_USER
EMAIL_HOST_PASSWORD = secrets.EMAIL_PASS
EMAIL_USE_TLS = True
EMAIL_USE_SSL = False
if DEBUG: logger.info('Debug mode ON')
logger.info('Test logging for each thread')