fix: set tenant on form creation

fixes #425
This commit is contained in:
Zach Daniel 2024-04-17 00:43:39 +01:00
parent 0b920305b2
commit 7430ab7d67

View file

@ -65,6 +65,7 @@ defmodule AshAuthentication.Phoenix.Components.Password.SignInForm do
id:
"#{subject_name}-#{Strategy.name(strategy)}-#{strategy.sign_in_action_name}"
|> slugify(),
tenant: socket.assigns[:current_tenant],
context: %{strategy: strategy, private: %{ash_authentication?: true}}
)