Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Apply overrides to password reset update form in Igniter-generated routes #529

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/mix/tasks/ash_authentication_phoenix.install.ex
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ defmodule Mix.Tasks.AshAuthenticationPhoenix.Install do
overrides: [#{inspect(overrides)}, AshAuthentication.Phoenix.Overrides.Default]

# Remove this if you do not want to use the reset password feature
reset_route auth_routes_prefix: "/auth"
reset_route auth_routes_prefix: "/auth", overrides: [#{inspect(overrides)}, AshAuthentication.Phoenix.Overrides.Default]
""",
with_pipelines: [:browser],
arg2: Igniter.Libs.Phoenix.web_module(igniter),
Expand Down
5 changes: 4 additions & 1 deletion test/mix/tasks/ash_authentication_phoenix.install_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ defmodule Mix.Tasks.AshAuthenticationPhoenix.InstallTest do
+ | )
+ |
+ | # Remove this if you do not want to use the reset password feature
+ | reset_route(auth_routes_prefix: "/auth")
+ | reset_route(
+ | auth_routes_prefix: "/auth",
+ | overrides: [TestWeb.AuthOverrides, AshAuthentication.Phoenix.Overrides.Default]
+ | )
+ | end
""")
end
Expand Down
Loading