Dodanie właściwej konfiguracji dockera
This commit is contained in:
1 parent
6a225cb60c
commit
d3fb703ed6
4364 files changed
+828806
-10
No files matched your search
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Controllers;
|
||||
|
||||
use PhpMyAdmin\Core;
|
||||
|
||||
class LogoutController
|
||||
{
|
||||
public function __invoke(): void
|
||||
{
|
||||
global $auth_plugin, $token_mismatch;
|
||||
|
||||
if (($_SERVER['REQUEST_METHOD'] ?? 'GET') !== 'POST' || $token_mismatch) {
|
||||
Core::sendHeaderLocation('./index.php?route=/');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$auth_plugin->logOut();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user