fix account urls
This commit is contained in:
parent
8e1bb5c333
commit
e218290e08
19 changed files with 102 additions and 102 deletions
|
@ -158,7 +158,7 @@ defmodule WildWeb.UserAuth do
|
|||
socket =
|
||||
socket
|
||||
|> Phoenix.LiveView.put_flash(:error, "You must log in to access this page.")
|
||||
|> Phoenix.LiveView.redirect(to: ~p"/users/log_in")
|
||||
|> Phoenix.LiveView.redirect(to: ~p"/account/log_in")
|
||||
|
||||
{:halt, socket}
|
||||
end
|
||||
|
@ -208,7 +208,7 @@ defmodule WildWeb.UserAuth do
|
|||
conn
|
||||
|> put_flash(:error, "You must log in to access this page.")
|
||||
|> maybe_store_return_to()
|
||||
|> redirect(to: ~p"/users/log_in")
|
||||
|> redirect(to: ~p"/account/log_in")
|
||||
|> halt()
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue