fix: set ash_authentication? context on forms (#56)

This commit is contained in:
Zach Daniel 2023-01-12 17:27:06 -05:00 committed by GitHub
parent 3c6caf45ca
commit f8c26bba33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -60,7 +60,7 @@ defmodule AshAuthentication.Phoenix.Components.Password.RegisterForm do
api: api,
as: subject_name |> to_string(),
id: "#{subject_name}-#{strategy.name}-#{strategy.register_action_name}" |> slugify(),
context: %{strategy: strategy}
context: %{strategy: strategy, private: %{ash_authentication?: true}}
)
socket =

View file

@ -179,7 +179,7 @@ defmodule AshAuthentication.Phoenix.Components.Password.ResetForm do
id:
"#{subject_name}-#{strategy.name}-#{resettable.request_password_reset_action_name}"
|> slugify(),
context: %{strategy: strategy}
context: %{strategy: strategy, private: %{ash_authentication?: true}}
)
end
end

View file

@ -60,7 +60,7 @@ defmodule AshAuthentication.Phoenix.Components.Password.SignInForm do
api: api,
as: subject_name |> to_string(),
id: "#{subject_name}-#{strategy.name}-#{strategy.sign_in_action_name}" |> slugify(),
context: %{strategy: strategy}
context: %{strategy: strategy, private: %{ash_authentication?: true}}
)
socket =

View file

@ -67,7 +67,7 @@ defmodule AshAuthentication.Phoenix.Components.Reset.Form do
as: subject_name |> to_string(),
id:
"#{subject_name}-#{strategy.name}-#{resettable.password_reset_action_name}" |> slugify(),
context: %{strategy: strategy}
context: %{strategy: strategy, private: %{ash_authentication?: true}}
)
socket =