Remove register links and route

This commit is contained in:
Nathan Chapman 2024-11-19 10:01:20 -07:00
parent 9238a9158c
commit eae49eeb78
7 changed files with 5 additions and 21 deletions

View File

@ -37,11 +37,6 @@
</.link>
</li>
<% else %>
<li>
<.link href={~p"/users/register"}>
Register
</.link>
</li>
<li>
<.link href={~p"/users/log_in"}>
Log in

View File

@ -21,8 +21,7 @@ defmodule SendItWeb.UserConfirmationInstructionsLive do
</.simple_form>
<p class="text-center mt-4">
<.link href={~p"/users/register"}>Register</.link>
| <.link href={~p"/users/log_in"}>Log in</.link>
<.link href={~p"/users/log_in"}>Log in</.link>
</p>
</div>
"""

View File

@ -16,8 +16,7 @@ defmodule SendItWeb.UserConfirmationLive do
</.simple_form>
<p class="text-center mt-4">
<.link href={~p"/users/register"}>Register</.link>
| <.link href={~p"/users/log_in"}>Log in</.link>
<.link href={~p"/users/log_in"}>Log in</.link>
</p>
</div>
"""

View File

@ -20,8 +20,7 @@ defmodule SendItWeb.UserForgotPasswordLive do
</:actions>
</.simple_form>
<p class="text-center text-sm mt-4">
<.link href={~p"/users/register"}>Register</.link>
| <.link href={~p"/users/log_in"}>Log in</.link>
<.link href={~p"/users/log_in"}>Log in</.link>
</p>
</div>
"""

View File

@ -6,13 +6,6 @@ defmodule SendItWeb.UserLoginLive do
<div class="mx-auto max-w-sm">
<.header class="text-center">
Log in to account
<:subtitle>
Don't have an account?
<.link navigate={~p"/users/register"} class="font-semibold text-brand hover:underline">
Sign up
</.link>
for an account now.
</:subtitle>
</.header>
<.simple_form for={@form} id="login_form" action={~p"/users/log_in"} phx-update="ignore">

View File

@ -31,8 +31,7 @@ defmodule SendItWeb.UserResetPasswordLive do
</.simple_form>
<p class="text-center text-sm mt-4">
<.link href={~p"/users/register"}>Register</.link>
| <.link href={~p"/users/log_in"}>Log in</.link>
<.link href={~p"/users/log_in"}>Log in</.link>
</p>
</div>
"""

View File

@ -53,7 +53,7 @@ defmodule SendItWeb.Router do
live_session :redirect_if_user_is_authenticated,
on_mount: [{SendItWeb.UserAuth, :redirect_if_user_is_authenticated}] do
live "/users/register", UserRegistrationLive, :new
# live "/users/register", UserRegistrationLive, :new
live "/users/log_in", UserLoginLive, :new
live "/users/reset_password", UserForgotPasswordLive, :new
live "/users/reset_password/:token", UserResetPasswordLive, :edit