Skip to content

Commit

Permalink
fastapi_auth_partner: force send mail as we use it in a job
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienbeau committed Dec 17, 2023
1 parent 26171e7 commit 18fbc37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi_auth_partner/models/fastapi_auth_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def set_password(self, directory, token_set_password, password):
def send_reset_password(self, template, force_expiration=None):
self.ensure_one()
token = self._generate_token(force_expiration=force_expiration)
template.sudo().with_context(token=token).send_mail(self.id)
template.sudo().with_context(token=token).send_mail(self.id, force_send=True)
self.date_last_request_reset_pwd = fields.Datetime.now()
self.date_last_sucessfull_reset_pwd = None
self.nbr_pending_reset_sent += 1
Expand Down

0 comments on commit 18fbc37

Please sign in to comment.