fix account urls
This commit is contained in:
parent
8e1bb5c333
commit
e218290e08
19 changed files with 102 additions and 102 deletions
|
@ -37,7 +37,7 @@ defmodule WildWeb.UserSettingsLive do
|
|||
<.simple_form
|
||||
for={@password_form}
|
||||
id="password_form"
|
||||
action={~p"/users/log_in?_action=password_updated"}
|
||||
action={~p"/account/log_in?_action=password_updated"}
|
||||
method="post"
|
||||
phx-change="validate_password"
|
||||
phx-submit="update_password"
|
||||
|
@ -83,7 +83,7 @@ defmodule WildWeb.UserSettingsLive do
|
|||
put_flash(socket, :error, "Email change link is invalid or it has expired.")
|
||||
end
|
||||
|
||||
{:ok, push_navigate(socket, to: ~p"/users/settings")}
|
||||
{:ok, push_navigate(socket, to: ~p"/account/settings")}
|
||||
end
|
||||
|
||||
def mount(_params, _session, socket) do
|
||||
|
@ -124,7 +124,7 @@ defmodule WildWeb.UserSettingsLive do
|
|||
Accounts.deliver_user_update_email_instructions(
|
||||
applied_user,
|
||||
user.email,
|
||||
&url(~p"/users/settings/confirm_email/#{&1}")
|
||||
&url(~p"/account/settings/confirm_email/#{&1}")
|
||||
)
|
||||
|
||||
info = "A link to confirm your email change has been sent to the new address."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue