From 7430ab7d67c2160ef58f0d56424c7c43d637ecf7 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 17 Apr 2024 00:43:39 +0100 Subject: [PATCH] fix: set tenant on form creation fixes #425 --- .../components/password/sign_in_form.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ash_authentication_phoenix/components/password/sign_in_form.ex b/lib/ash_authentication_phoenix/components/password/sign_in_form.ex index f7e1b37..ea6bd2e 100644 --- a/lib/ash_authentication_phoenix/components/password/sign_in_form.ex +++ b/lib/ash_authentication_phoenix/components/password/sign_in_form.ex @@ -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}} )