Skip to content

Commit

Permalink
Redirect to sign-in
Browse files Browse the repository at this point in the history
  • Loading branch information
skanderm committed Jul 14, 2023
1 parent f5e9af9 commit 32f5d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lib/orcasite_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ defmodule OrcasiteWeb.Router do
conn
|> case do
%{assigns: %{current_user: user}} when not is_nil(user) -> conn
_ -> Phoenix.Controller.redirect(conn, to: "/")
_ -> Phoenix.Controller.redirect(conn, to: "/sign-in")
end
end

Expand Down

0 comments on commit 32f5d1a

Please sign in to comment.