From 5c909acbcb2bdce967456a9021c7d057a82a312d Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 21 Feb 2025 20:59:44 -0500 Subject: [PATCH] check isAdmin and auth --- checkAuth.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 checkAuth.php diff --git a/checkAuth.php b/checkAuth.php new file mode 100644 index 0000000..5aa5834 --- /dev/null +++ b/checkAuth.php @@ -0,0 +1,14 @@ + false]); + exit; +} + +echo json_encode([ + "authenticated" => true, + "isAdmin" => isset($_SESSION["isAdmin"]) ? $_SESSION["isAdmin"] : false +]); +?>