auth via somethingawful cookie
This commit is contained in:
@ -73,7 +73,7 @@ defmodule SomethingErlangWeb.ThreadLive do
|
||||
<%= for btn <- buttons(@thread) do %>
|
||||
<.link
|
||||
class={["btn btn-sm btn-ghost", btn.special]}
|
||||
navigate={~p"/thread/#{@thread.id}?page=#{btn.page}"}
|
||||
patch={~p"/thread/#{@thread.id}?page=#{btn.page}"}
|
||||
>
|
||||
<.label_button label={btn.label} page={btn.page} />
|
||||
</.link>
|
||||
@ -127,9 +127,11 @@ defmodule SomethingErlangWeb.ThreadLive do
|
||||
]
|
||||
end
|
||||
|
||||
def mount(params, session, socket) do
|
||||
Grover.mount(socket.assigns.current_user)
|
||||
session |> IO.inspect()
|
||||
def mount(_params, session, socket) do
|
||||
socket.assigns.current_user
|
||||
|> Map.put(:bbpassword, session["bbpassword"])
|
||||
|> Grover.mount()
|
||||
|
||||
{:ok, socket}
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user