tmp
Some checks failed
Base CI / Build and test (pull_request) Failing after 1m32s

This commit is contained in:
r8zavetr8v 2024-09-18 00:46:33 +03:00
parent 098cca6935
commit 34429ce640
2 changed files with 12 additions and 0 deletions

View File

@ -17,5 +17,7 @@ defmodule DrainCloudCore.Auth.SessionsStore do
end
def initialize_session(conn, user) do
end
end

View File

@ -9,6 +9,16 @@ defmodule DrainCloudCoreWeb.AuthController do
alias DrainCloudCore.Auth.Users , as: Repo
def register(conn, _params) do
Log.debug(
Enum.find_value(conn.req_headers, "", fn x ->
case x do
{"user-agent", agent} -> agent
_ -> nil
end
end)
|> inspect
)
try do
RegisterRequest.from_request(conn)
|> RegisterRequest.to_model