fix account urls

This commit is contained in:
Daniel Yrovas 2025-01-09 15:28:23 +11:00
parent 8e1bb5c333
commit e218290e08
Signed by: danielyrovas
SSH key fingerprint: SHA256:1avlGZQpGW038lBkNI5lOS7f0hIPM7ecJen2/P1MCCU
19 changed files with 102 additions and 102 deletions

View file

@ -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."