fix: Ensure session respects router scope when using sign_in_route helper (#490)

This commit is contained in:
Andrew Hacking 2024-08-08 00:06:24 +10:00 committed by GitHub
parent 112b86d30c
commit e30be539b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -189,9 +189,9 @@ defmodule AshAuthentication.Phoenix.Router do
%{
"overrides" => unquote(overrides),
"otp_app" => unquote(otp_app),
"path" => unquote(path),
"reset_path" => unquote(reset_path),
"register_path" => unquote(register_path)
"path" => Phoenix.Router.scoped_path(__MODULE__, unquote(path)),
"reset_path" => Phoenix.Router.scoped_path(__MODULE__, unquote(reset_path)),
"register_path" => Phoenix.Router.scoped_path(__MODULE__, unquote(register_path))
}
]},
on_mount: on_mount