From e8ba15975607adcd095e76ba16251ef6f979e11b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 16 Apr 2021 22:44:42 +0200 Subject: [PATCH] root: fix setting of EMAIL_USE_TLS and EMAIL_USE_SSL Signed-off-by: Jens Langhammer --- authentik/root/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/root/settings.py b/authentik/root/settings.py index ec052c734..eb6a99048 100644 --- a/authentik/root/settings.py +++ b/authentik/root/settings.py @@ -254,8 +254,8 @@ EMAIL_HOST = CONFIG.y("email.host") EMAIL_PORT = int(CONFIG.y("email.port")) EMAIL_HOST_USER = CONFIG.y("email.username") EMAIL_HOST_PASSWORD = CONFIG.y("email.password") -EMAIL_USE_TLS = CONFIG.y("email.use_tls") -EMAIL_USE_SSL = CONFIG.y("email.use_ssl") +EMAIL_USE_TLS = CONFIG.y_bool("email.use_tls", True) +EMAIL_USE_SSL = CONFIG.y_bool("email.use_ssl", False) EMAIL_TIMEOUT = int(CONFIG.y("email.timeout")) DEFAULT_FROM_EMAIL = CONFIG.y("email.from") SERVER_EMAIL = DEFAULT_FROM_EMAIL