mirror of
https://github.com/team-alembic/ash_authentication_phoenix.git
synced 2024-09-19 13:03:50 +12:00
fix: only scope reset/register paths if they are set
This commit is contained in:
parent
e30be539b0
commit
661712de6e
1 changed files with 2 additions and 2 deletions
|
@ -190,8 +190,8 @@ defmodule AshAuthentication.Phoenix.Router do
|
|||
"overrides" => unquote(overrides),
|
||||
"otp_app" => unquote(otp_app),
|
||||
"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))
|
||||
"reset_path" => unquote(reset_path) && Phoenix.Router.scoped_path(__MODULE__, unquote(reset_path)),
|
||||
"register_path" => unquote(register_path) && Phoenix.Router.scoped_path(__MODULE__, unquote(register_path))
|
||||
}
|
||||
]},
|
||||
on_mount: on_mount
|
||||
|
|
Loading…
Reference in a new issue