mirror of
https://github.com/team-alembic/ash_authentication_phoenix.git
synced 2024-09-19 13:03:50 +12:00
fix: set ash_authentication? context on forms (#56)
This commit is contained in:
parent
3c6caf45ca
commit
f8c26bba33
4 changed files with 4 additions and 4 deletions
|
@ -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 =
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 =
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue