Remove register links and route
This commit is contained in:
parent
9238a9158c
commit
eae49eeb78
@ -37,11 +37,6 @@
|
|||||||
</.link>
|
</.link>
|
||||||
</li>
|
</li>
|
||||||
<% else %>
|
<% else %>
|
||||||
<li>
|
|
||||||
<.link href={~p"/users/register"}>
|
|
||||||
Register
|
|
||||||
</.link>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<.link href={~p"/users/log_in"}>
|
<.link href={~p"/users/log_in"}>
|
||||||
Log in
|
Log in
|
||||||
|
|||||||
@ -21,8 +21,7 @@ defmodule SendItWeb.UserConfirmationInstructionsLive do
|
|||||||
</.simple_form>
|
</.simple_form>
|
||||||
|
|
||||||
<p class="text-center mt-4">
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -16,8 +16,7 @@ defmodule SendItWeb.UserConfirmationLive do
|
|||||||
</.simple_form>
|
</.simple_form>
|
||||||
|
|
||||||
<p class="text-center mt-4">
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -20,8 +20,7 @@ defmodule SendItWeb.UserForgotPasswordLive do
|
|||||||
</:actions>
|
</:actions>
|
||||||
</.simple_form>
|
</.simple_form>
|
||||||
<p class="text-center text-sm mt-4">
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -6,13 +6,6 @@ defmodule SendItWeb.UserLoginLive do
|
|||||||
<div class="mx-auto max-w-sm">
|
<div class="mx-auto max-w-sm">
|
||||||
<.header class="text-center">
|
<.header class="text-center">
|
||||||
Log in to account
|
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>
|
</.header>
|
||||||
|
|
||||||
<.simple_form for={@form} id="login_form" action={~p"/users/log_in"} phx-update="ignore">
|
<.simple_form for={@form} id="login_form" action={~p"/users/log_in"} phx-update="ignore">
|
||||||
|
|||||||
@ -31,8 +31,7 @@ defmodule SendItWeb.UserResetPasswordLive do
|
|||||||
</.simple_form>
|
</.simple_form>
|
||||||
|
|
||||||
<p class="text-center text-sm mt-4">
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -53,7 +53,7 @@ defmodule SendItWeb.Router do
|
|||||||
|
|
||||||
live_session :redirect_if_user_is_authenticated,
|
live_session :redirect_if_user_is_authenticated,
|
||||||
on_mount: [{SendItWeb.UserAuth, :redirect_if_user_is_authenticated}] do
|
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/log_in", UserLoginLive, :new
|
||||||
live "/users/reset_password", UserForgotPasswordLive, :new
|
live "/users/reset_password", UserForgotPasswordLive, :new
|
||||||
live "/users/reset_password/:token", UserResetPasswordLive, :edit
|
live "/users/reset_password/:token", UserResetPasswordLive, :edit
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user