summaryrefslogtreecommitdiffstats
path: root/takahe
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-02 16:36:07 -0700
committerAndrew Godwin2022-12-02 16:36:07 -0700
commit250afe4e4014a9baa9b9f347442594b1b6943e7d (patch)
treeba5e2627133f61bfeb2f215551d0f3e0624ab0a8 /takahe
parent9f3ad0be16d556a36ac48ffbd461a31873c78055 (diff)
downloadtakahe-250afe4e4014a9baa9b9f347442594b1b6943e7d.tar.gz
takahe-250afe4e4014a9baa9b9f347442594b1b6943e7d.tar.bz2
takahe-250afe4e4014a9baa9b9f347442594b1b6943e7d.zip
Allow quoted usernames too
Diffstat (limited to 'takahe')
-rw-r--r--takahe/settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/takahe/settings.py b/takahe/settings.py
index 788654d..926aac5 100644
--- a/takahe/settings.py
+++ b/takahe/settings.py
@@ -286,7 +286,7 @@ if SETUP.EMAIL_SERVER:
elif parsed.scheme == "smtp":
EMAIL_HOST = parsed.hostname
EMAIL_PORT = parsed.port
- EMAIL_HOST_USER = parsed.username
+ EMAIL_HOST_USER = urllib.parse.unquote(parsed.username)
EMAIL_HOST_PASSWORD = urllib.parse.unquote(parsed.password)
EMAIL_USE_TLS = as_bool(query.get("tls"))
EMAIL_USE_SSL = as_bool(query.get("ssl"))