Skip to content

Commit

Permalink
improvement: Add tenant to new user confirmation sender (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
nonameexists1 authored Feb 20, 2025
1 parent 3609614 commit 0dc1422
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,10 @@ defmodule AshAuthentication.AddOn.Confirmation.ConfirmationHookChange do
|> case do
{:ok, token} ->
{sender, send_opts} = strategy.sender
sender.send(user, token, Keyword.put(send_opts, :changeset, original_changeset))
send_opts
|> Keyword.put(:tenant, context.tenant)
|> Keyword.put(:changeset, original_changeset)
|> then(&sender.send(user, token, &1))

metadata =
user.__metadata__
Expand Down

0 comments on commit 0dc1422

Please sign in to comment.