 defmodule HELM.Account.Controller do
   import Ecto.Changeset
   import Ecto.Query
-
-  alias HeBroker.Publisher
-
+  
   alias HELF.{Broker, Error}
   alias HELM.Account.{Repo, Schema}
 

    end
  end

  defp do_new_account(changeset) do
    case Repo.insert(changeset) do
      {:ok, result} ->

        {:error, Error.format_reply(:unspecified, "oh god")}
    end
  end

  def get(request) do
    case Broker.call("auth:account:verify", request.args["jwt"]) do
      :ok -> find(request.args["email"])
      {:error, reason} -> {:reply, {:error, reason}}
    end
  end
end
