We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1645d0e commit 711de54Copy full SHA for 711de54
1 file changed
hypha/apply/users/services.py
@@ -97,8 +97,20 @@ def send_email_no_account_found(self, to):
97
# Force subject to a single line to avoid header-injection issues.
98
subject = "".join(subject.splitlines())
99
100
+ context = {
101
+ "site": self.site,
102
+ "ORG_LONG_NAME": settings.ORG_LONG_NAME,
103
+ "ORG_SHORT_NAME": settings.ORG_SHORT_NAME,
104
+ "ORG_EMAIL": settings.ORG_EMAIL,
105
+ }
106
+
107
email = MarkdownMail("users/emails/passwordless_login_no_account_found.md")
- email.send(to=to, subject=subject, from_email=settings.DEFAULT_FROM_EMAIL)
108
+ email.send(
109
+ to=to,
110
+ subject=subject,
111
+ from_email=settings.DEFAULT_FROM_EMAIL,
112
+ context=context,
113
+ )
114
115
def send_login_email(self, user):
116
login_path = self._get_login_path(user)
0 commit comments