summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-27 17:30:33 -0700
committerAndrew Godwin2022-11-27 17:30:33 -0700
commit2d569a8050cb3522b4bea78fd34696ec6528e80f (patch)
tree1c5e049afb55113713e40d3339f1badc014b233b
parent0221ea261fe32b30d441ea10ea39256c0f9b82e3 (diff)
downloadtakahe-2d569a8050cb3522b4bea78fd34696ec6528e80f.tar.gz
takahe-2d569a8050cb3522b4bea78fd34696ec6528e80f.tar.bz2
takahe-2d569a8050cb3522b4bea78fd34696ec6528e80f.zip
Fix SendGrid key ingestion
-rw-r--r--takahe/settings.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/takahe/settings.py b/takahe/settings.py
index 8b62206..20f89b4 100644
--- a/takahe/settings.py
+++ b/takahe/settings.py
@@ -272,7 +272,8 @@ if SETUP.EMAIL_SERVER:
EMAIL_HOST = "smtp.sendgrid.net"
EMAIL_PORT = 587
EMAIL_HOST_USER = "apikey"
- EMAIL_HOST_PASSWORD = parsed.hostname
+ # urlparse will lowercase it
+ EMAIL_HOST_PASSWORD = SETUP.EMAIL_SERVER.split("://")[1]
EMAIL_USE_TLS = True
elif parsed.scheme == "smtp":
EMAIL_HOST = parsed.hostname