Skip to content

Commit

Permalink
fix: handle tenant-specific query in Password Reset Form handle_event…
Browse files Browse the repository at this point in the history
…/3 (#537)
  • Loading branch information
kamaroly authored Nov 24, 2024
1 parent e304eaf commit d6baf19
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ defmodule AshAuthentication.Phoenix.Components.Password.ResetForm do
changeset when is_struct(changeset, Ash.Changeset) ->
changeset
|> Ash.Changeset.set_tenant(socket.assigns.current_tenant)

query when is_struct(query, Ash.Query) ->
query
|> Ash.Query.set_tenant(socket.assigns.current_tenant)
end
)

Expand Down

0 comments on commit d6baf19

Please sign in to comment.