kopia lustrzana https://github.com/jointakahe/takahe
Update settings.py
Allow unauthenticated SMTP. Set EMAIL_HOST_USER and EMAIL_HOST_PASSWORD to None if the corresponding parts of the EMAIL_SERVER URL are absent.pull/600/head
rodzic
e34e4c0c77
commit
537737f2ab
|
@ -395,8 +395,8 @@ if SETUP.EMAIL_SERVER:
|
|||
elif parsed.scheme == "smtp":
|
||||
EMAIL_HOST = parsed.hostname
|
||||
EMAIL_PORT = parsed.port
|
||||
EMAIL_HOST_USER = urllib.parse.unquote(parsed.username)
|
||||
EMAIL_HOST_PASSWORD = urllib.parse.unquote(parsed.password)
|
||||
EMAIL_HOST_USER = urllib.parse.unquote(parsed.username) if parsed.username is not None else None
|
||||
EMAIL_HOST_PASSWORD = urllib.parse.unquote(parsed.password) if parsed.password is not None else None
|
||||
EMAIL_USE_TLS = as_bool(query.get("tls"))
|
||||
EMAIL_USE_SSL = as_bool(query.get("ssl"))
|
||||
else:
|
||||
|
|
Ładowanie…
Reference in New Issue