Skip to content

Commit

Permalink
Add default value EmailStage for stage_class in stage.email.tasks.sen…
Browse files Browse the repository at this point in the history
…d_mail
  • Loading branch information
melizeche committed Jan 28, 2025
1 parent 2cc1d23 commit 4fcd05b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authentik/stages/email/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_email_body(email: EmailMultiAlternatives) -> str:
def send_mail(
self: SystemTask,
message: dict[Any, Any],
stage_class: EmailStage | AuthenticatorEmailStage,
stage_class: EmailStage | AuthenticatorEmailStage = EmailStage,
email_stage_pk: str | None = None,
):
"""Send Email for Email Stage. Retries are scheduled automatically."""
Expand Down

0 comments on commit 4fcd05b

Please sign in to comment.