mirror of
https://github.com/ClaperCo/Claper.git
synced 2025-12-15 19:37:53 +01:00
13 lines
304 B
Elixir
13 lines
304 B
Elixir
defmodule ClaperWeb.AttendeeLiveAuth do
|
|
import Phoenix.LiveView
|
|
|
|
def on_mount(:default, _params, session, socket) do
|
|
socket =
|
|
socket
|
|
|> assign(:attendee_identifier, session["attendee_identifier"])
|
|
|> assign(:current_user, session["current_user"])
|
|
|
|
{:cont, socket}
|
|
end
|
|
end
|