Fix: use PAPERLESS_URL if set for pw reset emails (#5902)

This commit is contained in:
shamoon authored and GitHub committed 2024-02-26 21:41:25 +00:00
1 parent 86811d0733
commit 16f4552e0e
8 files changed
+136 -43

No files matched your search

+1
View File
@@ -7,4 +7,5 @@ def settings(request):
or django_settings.EMAIL_HOST_USER != "",
"DISABLE_REGULAR_LOGIN": django_settings.DISABLE_REGULAR_LOGIN,
"ACCOUNT_ALLOW_SIGNUPS": django_settings.ACCOUNT_ALLOW_SIGNUPS,
"domain": getattr(django_settings, "PAPERLESS_URL", request.get_host()),
}