@ -21,7 +21,7 @@ class Index extends AbstractController
public function enterTheDen(Request $request, Auth $auth, RequestStack $requestStack, Render $render): Response
public function enterTheDen(Request $request, Auth $auth, RequestStack $requestStack, Render $render): Response
{
{
if ($request->getMethod() == "GET") {
if ($request->getMethod() == "GET") {
return $render->page([], "This is the Den", "back/index.twig");
return $render->page([], "The Bad Space | Den", "back/index.twig");
} else {
} else {
//handles login
//handles login
$handle = $request->request->get("handle");
$handle = $request->request->get("handle");
@ -31,10 +31,7 @@ class Index extends AbstractController
header("Location:/den");
header("Location:/den");
return new Response("< html > < body > LOGGED IN< / body > < / html > ");
return new Response("< html > < body > LOGGED IN< / body > < / html > ");
} else {
} else {
return $this->render("back/index.twig", [
return $render->page(["notice" => $result["message"]], "The Bad Space | Den", "back/index.twig");
"title" => "Close the door behind you",
"notice" => $result["message"]
]);
}
}
}
}
}
}