Initial Commit
This commit is contained in:
6
api/auth/me.php
Normal file
6
api/auth/me.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
$auth = isset($_SESSION['user']);
|
||||
echo json_encode([
|
||||
'authenticated' => $auth,
|
||||
'user' => $auth ? $_SESSION['user'] : null
|
||||
]);
|
||||
Reference in New Issue
Block a user