disable login

This commit is contained in:
CJ_Clippy 2025-01-14 19:09:01 -08:00
parent 4eba121d15
commit c046b8e5d2
3 changed files with 41 additions and 36 deletions

View File

@ -41,6 +41,8 @@ registry:
# Configure builder setup. # Configure builder setup.
builder: builder:
args:
MIX_ENV: prod
arch: amd64 arch: amd64
dockerfile: ./dockerfiles/bright.dockerfile dockerfile: ./dockerfiles/bright.dockerfile
# Pass in additional build args needed for your Dockerfile. # Pass in additional build args needed for your Dockerfile.
@ -90,11 +92,12 @@ ssh:
# #
accessories: accessories:
superstreamer: # superstreamer:
env: # host: 45.76.57.101
clear: # env:
PUBLIC_API_ENDPOINT: https://api.superstreamer.futureporn.net # clear:
PUBLIC_STITCHER_ENDPOINT: http://localhost:52002 # PUBLIC_API_ENDPOINT: https://api.superstreamer.futureporn.net
# PUBLIC_STITCHER_ENDPOINT: http://localhost:52002
db: db:
image: postgres:15 image: postgres:15

View File

@ -97,25 +97,25 @@
<%= if @current_user do %> <!-- <%= if @current_user do %>
<.link <.link
href={~p"/profile"} href={~p"/profile"}
class="navbar-item"> class="navbar-item">
Profile Profile
</.link> </.link>
<.link <.link
href={~p"/users/settings"} href={~p"/users/settings"}
class="navbar-item" class="navbar-item"
> >
Settings Settings
</.link> </.link>
<.link <.link
href={~p"/users/log_out"} href={~p"/users/log_out"}
method="delete" method="delete"
class="navbar-item" class="navbar-item"
> >
Log out Log out
</.link> </.link>
<% else %> <% else %>
<.link <.link
href={~p"/users/register"} href={~p"/users/register"}
@ -129,7 +129,7 @@
> >
Log in Log in
</.link> </.link>
<% end %> <% end %> -->
</div> </div>
</div> </div>

View File

@ -53,6 +53,8 @@ defmodule BrightWeb.Router do
resources "/vtubers", VtuberController do resources "/vtubers", VtuberController do
get "/vods/new", VodController, :new get "/vods/new", VodController, :new
get "/vods", VodController, :index
get "/vods/:id", VodController, :show
post "/vods", VodController, :create post "/vods", VodController, :create
get "/vtubers/:id/edit", VtuberController, :edit get "/vtubers/:id/edit", VtuberController, :edit
end end
@ -144,19 +146,19 @@ defmodule BrightWeb.Router do
## Authentication routes ## Authentication routes
scope "/", BrightWeb do # scope "/", BrightWeb do
pipe_through [:browser, :redirect_if_user_is_authenticated] # pipe_through [:browser, :redirect_if_user_is_authenticated]
live_session :redirect_if_user_is_authenticated, # live_session :redirect_if_user_is_authenticated,
on_mount: [{BrightWeb.UserAuth, :redirect_if_user_is_authenticated}] do # on_mount: [{BrightWeb.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
end # end
post "/users/log_in", UserSessionController, :create # post "/users/log_in", UserSessionController, :create
end # end
scope "/", BrightWeb do scope "/", BrightWeb do
pipe_through [:browser, :require_authenticated_user] pipe_through [:browser, :require_authenticated_user]