diff --git a/public_html/index.php b/public_html/index.php
index f080af5..eca814e 100755
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -85,6 +85,7 @@
// logout from admin
$R->get('logout/?', function(){
+ $_SERVER['REQUEST_METHOD'] = 'POST';
$req = new Request('authentificationDefault/admin', ['username' => '0', 'password' => '']);
$res = $req->dispatch();
header('Location: /');
@@ -108,6 +109,7 @@
// warehouse logout
$R->get('logout/?', function(){
+ $_SERVER['REQUEST_METHOD'] = 'POST';
(new Request('authentificationDefault/warehouse', ['name' => '000', 'password' => '']))->dispatch();
header('Location: /');
});