From 1b1ddf92b4abc7719126640793f71f9111408765 Mon Sep 17 00:00:00 2001 From: Rebecca Le <543859+sevenseacat@users.noreply.github.com> Date: Tue, 12 Nov 2024 11:35:47 +0800 Subject: [PATCH] fix: Apply overrides to password reset update form Without this, only the default override values are used! --- lib/mix/tasks/ash_authentication_phoenix.install.ex | 2 +- test/mix/tasks/ash_authentication_phoenix.install_test.exs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/mix/tasks/ash_authentication_phoenix.install.ex b/lib/mix/tasks/ash_authentication_phoenix.install.ex index cb34f7e5..75288080 100644 --- a/lib/mix/tasks/ash_authentication_phoenix.install.ex +++ b/lib/mix/tasks/ash_authentication_phoenix.install.ex @@ -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), diff --git a/test/mix/tasks/ash_authentication_phoenix.install_test.exs b/test/mix/tasks/ash_authentication_phoenix.install_test.exs index a0801bb9..54a3c030 100644 --- a/test/mix/tasks/ash_authentication_phoenix.install_test.exs +++ b/test/mix/tasks/ash_authentication_phoenix.install_test.exs @@ -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