testing
This commit is contained in:
11
public/logout.php
Normal file
11
public/logout.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
require __DIR__ . '/../config/db.php';
|
||||
require __DIR__ . '/../src/Auth.php';
|
||||
|
||||
$auth = new Auth($pdo);
|
||||
$auth->logout();
|
||||
|
||||
header('Location: /');
|
||||
exit;
|
||||
Reference in New Issue
Block a user