feat: redirect to / to /guess when logged in

This commit is contained in:
Moritz Böhme 2024-08-18 20:20:24 +02:00
parent 0affc58b13
commit 196678b61f
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
2 changed files with 2 additions and 3 deletions

View file

@ -19,8 +19,6 @@ defmodule PentoWeb.Router do
scope "/", PentoWeb do
pipe_through :browser
get "/", PageController, :home
end
# Other scopes may use custom stacks.
@ -56,6 +54,7 @@ defmodule PentoWeb.Router do
live "/users/log_in", UserLoginLive, :new
live "/users/reset_password", UserForgotPasswordLive, :new
live "/users/reset_password/:token", UserResetPasswordLive, :edit
get "/", PageController, :home
end
post "/users/log_in", UserSessionController, :create

View file

@ -225,5 +225,5 @@ defmodule PentoWeb.UserAuth do
defp maybe_store_return_to(conn), do: conn
defp signed_in_path(_conn), do: ~p"/"
defp signed_in_path(_conn), do: ~p"/guess"
end