Skip to content

Commit

Permalink
Always convert auth mails' subjects to str
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Jul 7, 2024
1 parent 9367585 commit a055220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emmett/tools/auth/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,14 +355,14 @@ def _registration_email(self, user, data):
data['email'] = user.email
return self.app.ext.MailExtension.send_mail(
recipients=user.email,
subject=self.config.messages['registration_email_subject'],
subject=str(self.config.messages['registration_email_subject']),
body=str(self.config.messages['registration_email_text'] % data))

def _reset_password_email(self, user, data):
data['email'] = user.email
return self.app.ext.MailExtension.send_mail(
recipients=user.email,
subject=self.config.messages['reset_password_email_subject'],
subject=str(self.config.messages['reset_password_email_subject']),
body=str(self.config.messages['reset_password_email_text'] % data))


Expand Down

0 comments on commit a055220

Please sign in to comment.