diff --git a/lib/draincloud_core/auth/sessions_store.ex b/lib/draincloud_core/auth/sessions_store.ex index fdffe7c..9818ffd 100644 --- a/lib/draincloud_core/auth/sessions_store.ex +++ b/lib/draincloud_core/auth/sessions_store.ex @@ -17,5 +17,7 @@ defmodule DrainCloudCore.Auth.SessionsStore do end + def initialize_session(conn, user) do + end end diff --git a/lib/draincloud_core_web/controllers/auth_controller/auth_controller.ex b/lib/draincloud_core_web/controllers/auth_controller/auth_controller.ex index 4411127..930b5fb 100644 --- a/lib/draincloud_core_web/controllers/auth_controller/auth_controller.ex +++ b/lib/draincloud_core_web/controllers/auth_controller/auth_controller.ex @@ -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