Skip to content

Commit 4c76627

Browse files
authored
Add missing site context to passwordless mails. (#4799)
1 parent 2297060 commit 4c76627

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

hypha/apply/users/services.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def send_login_email(self, user):
103103
"username": user.get_username(),
104104
"login_path": login_path,
105105
"timeout_minutes": timeout_minutes,
106+
"site": self.site,
106107
}
107108

108109
subject = f"Log in to {user.get_username()} at {settings.ORG_LONG_NAME}"
@@ -124,6 +125,7 @@ def send_new_account_login_email(self, signup_obj):
124125
context = {
125126
"signup_path": signup_path,
126127
"timeout_minutes": timeout_minutes,
128+
"site": self.site,
127129
}
128130

129131
subject = f"Welcome to {settings.ORG_LONG_NAME}"

0 commit comments

Comments
 (0)