Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions atr/storage/writers/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ async def add_token(
message = mail.Message(
email_sender=NOREPLY_EMAIL_ADDRESS,
email_recipient=f"{self.__asf_uid}@apache.org",
subject="New API Token Created",
body=f"A new API token called '{label}' was created for your account. "
subject="ATR - New API Token Created",
body=f"In ATR a new API token called '{label}' was created for your account. "
"If you did not create this token, please revoke it immediately.",
)
await self.__write_as.mail.send(message)
Expand All @@ -104,8 +104,8 @@ async def delete_token(self, token_id: int) -> None:
message = mail.Message(
email_sender=NOREPLY_EMAIL_ADDRESS,
email_recipient=f"{self.__asf_uid}@apache.org",
subject="Deleted API Token",
body=f"An API token called '{label}' was deleted from your account. "
subject="ATR - Deleted API Token",
body=f"In ATR an API token called '{label}' was deleted from your account. "
"If you did not delete this token, please check your account immediately.",
)
await self.__write_as.mail.send(message)
Expand Down