-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing ~p in phx.gen.auth templates (#5899)
For consistency with other URLs that use VerifiedRoutes.
- Loading branch information
1 parent
5e95d95
commit f6a04d9
Showing
4 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web | |
lv | ||
|> form("#reset_password_form", <%= schema.singular %>: %{"email" => <%= schema.singular %>.email}) | ||
|> render_submit() | ||
|> follow_redirect(conn, "/") | ||
|> follow_redirect(conn, ~p"/") | ||
|
||
assert Phoenix.Flash.get(conn.assigns.flash, :info) =~ "If your email is in our system" | ||
|
||
|
@@ -54,7 +54,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web | |
lv | ||
|> form("#reset_password_form", <%= schema.singular %>: %{"email" => "[email protected]"}) | ||
|> render_submit() | ||
|> follow_redirect(conn, "/") | ||
|> follow_redirect(conn, ~p"/") | ||
|
||
assert Phoenix.Flash.get(conn.assigns.flash, :info) =~ "If your email is in our system" | ||
assert Repo.all(<%= inspect context.alias %>.<%= inspect schema.alias %>Token) == [] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters