 defmodule ElixirJobsWeb.AuthController do
   use ElixirJobsWeb, :controller
 
-  alias ElixirJobs.Users
+  alias ElixirJobs.{
+    Guardian,
+    Users
+  }
 
   plug :scrub_params, "auth" when action in [:create]
 

        |> put_flash(:error, "Invalid credentials!")
    end
  end
end

         {:ok, password} <- Map.fetch(auth_params, "password"),
         {:ok, admin} <- Users.auth_admin(email, password) do
        conn
        |> Guardian.Plug.sign_in(admin)
        |> redirect(to: offer_path(:index))
    else
      _ ->
