Skip to content

Commit

Permalink
fix: Apply overrides to password reset update form (#529)
Browse files Browse the repository at this point in the history
Without this, only the default override values are used!
  • Loading branch information
sevenseacat authored Nov 14, 2024
1 parent cdfea54 commit e304eaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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 @@ -211,7 +211,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

0 comments on commit e304eaf

Please sign in to comment.