diff options
Diffstat (limited to '')
-rw-r--r-- | lib/lsg_web/controllers/page_controller.ex | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/lsg_web/controllers/page_controller.ex b/lib/lsg_web/controllers/page_controller.ex index 94c9c70..2ac4d0a 100644 --- a/lib/lsg_web/controllers/page_controller.ex +++ b/lib/lsg_web/controllers/page_controller.ex @@ -1,12 +1,12 @@ -defmodule LSGWeb.PageController do - use LSGWeb, :controller +defmodule NolaWeb.PageController do + use NolaWeb, :controller - plug LSGWeb.ContextPlug when action not in [:token] - plug LSGWeb.ContextPlug, [restrict: :public] when action in [:token] + plug NolaWeb.ContextPlug when action not in [:token] + plug NolaWeb.ContextPlug, [restrict: :public] when action in [:token] def token(conn, %{"token" => token}) do with \ - {:ok, account, perks} <- LSG.AuthToken.lookup(token) + {:ok, account, perks} <- Nola.AuthToken.lookup(token) do IO.puts("Authenticated account #{inspect account}") conn = put_session(conn, :account, account) @@ -33,7 +33,7 @@ defmodule LSGWeb.PageController do end def irc(conn, _) do - bot_helps = for mod <- LSG.IRC.env(:handlers) do + bot_helps = for mod <- Nola.IRC.env(:handlers) do mod.irc_doc() end render conn, "irc.html", bot_helps: bot_helps |