Skip to content

Commit

Permalink
Merge pull request #74 from ExaWorks/renamed_email_template
Browse files Browse the repository at this point in the history
Consistently uses dashes instead of underscores in settings and template
  • Loading branch information
hategan authored Feb 13, 2025
2 parents 35d88e7 + 082518e commit 89bed0e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/psij/testing/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"from": "[email protected]",
"callback-url": "https://example.org",
"body": "mailtemplates/auth",
"body_auto": "mailtemplates/auth_auto",
"body-auto": "mailtemplates/auth-auto",
"exception-body": "mailtemplates/exception",
"exception-approved": "mailtemplates/exception-approved",
"exception-rejected": "mailtemplates/exception-rejected"
Expand Down
2 changes: 1 addition & 1 deletion src/psij/testing/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ def _load_email_bodies(self, file_prefix: str, params: Dict[str, str]) -> MIMEMu
def _send_key_email(self, email: str, id: str, token: str,
req: Optional[AuthKeyRequest]) -> None:
if req:
template = 'body_auto'
template = 'body-auto'
url = self.config['auth-email']['callback-url'] + '/verify?c=' + req.challenge
else:
template = 'body'
Expand Down

0 comments on commit 89bed0e

Please sign in to comment.