mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-06-25 16:04:37 -05:00
Auth Framework, Part 1
Started buildig the authorization infrastructure to 1. create the initial admin class to then 2. the Auth manager class can be created to manage access based on roles. added number of template files as well just as a UI base to get things started. Auth Framework Part 2 will complete the Auth mangager and clean up the admin area.
This commit is contained in:
@ -9,7 +9,6 @@ use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpClient\HttpClient;
|
||||
|
||||
//use App\Utils\PageRender;
|
||||
//use App\Data\Auth;
|
||||
@ -22,7 +21,7 @@ class Index extends AbstractController
|
||||
public function showIndex(Request $request): Response
|
||||
{
|
||||
return $this->render("front/index.twig", [
|
||||
"title" => "This is The Bad Space",
|
||||
"title" => "This is The Bad Space",
|
||||
]);
|
||||
/*
|
||||
$result = $auth->status();
|
||||
@ -42,4 +41,14 @@ class Index extends AbstractController
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route("/knockknock", name="access")
|
||||
*/
|
||||
public function access(Request $request): Response
|
||||
{
|
||||
return $this->render("front/knock.twig", [
|
||||
"title" => "Wipe Your feet",
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user