diff --git a/apiserver/apiserver/secrets.py.example b/apiserver/apiserver/secrets.py.example index 305f252..d6179e0 100644 --- a/apiserver/apiserver/secrets.py.example +++ b/apiserver/apiserver/secrets.py.example @@ -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! diff --git a/apiserver/apiserver/settings.py b/apiserver/apiserver/settings.py index 4169aa8..2580896 100644 --- a/apiserver/apiserver/settings.py +++ b/apiserver/apiserver/settings.py @@ -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')