Commit c8370f41 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

default to empty smtp user/pass

parent f13891b6
Pipeline #564 passed with stages
in 1 minute and 9 seconds
......@@ -16,8 +16,8 @@ DEBUG = os.environ.get('DEBUG', 'False').lower() == 'true'
EMAIL_USE_SSL = True
EMAIL_HOST = os.environ.get('EMAIL_HOST', f'smtp.{DOMAIN_NAME}')
EMAIL_HOST_PASSWORD = os.environ['EMAIL_HOST_PASSWORD']
EMAIL_USER = os.environ.get('EMAIL_USER', 'majo')
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD', '')
EMAIL_USER = os.environ.get('EMAIL_USER', '')
EMAIL_PORT = os.environ.get('EMAIL_PORT', 465)
EMAIL_FQDN = os.environ.get('EMAIL_FQDN', ALLOWED_HOSTS[0] if SELF_MAIL else DOMAIN_NAME)
EMAIL_HOST_USER = f'{EMAIL_USER}@{EMAIL_FQDN}'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment