[Fixed] Logout urls

This commit is contained in:
xdrm-brackets 2017-02-19 12:43:37 +01:00
parent e648656881
commit 7267900a39
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@
// logout from admin
$R->get('logout/?', function(){
$_SERVER['REQUEST_METHOD'] = 'POST';
$req = new Request('authentificationDefault/admin', ['username' => ' ', 'password' => '']);
$req = new Request('authentificationDefault/admin', ['username' => '-', 'password' => '']);
$res = $req->dispatch();
header('Location: /');
});
@ -108,7 +108,7 @@
// warehouse logout
$R->get('logout/?', function(){
$_SERVER['REQUEST_METHOD'] = 'POST';
(new Request('authentificationDefault/warehouse', ['name' => ' ', 'password' => '']))->dispatch();
(new Request('authentificationDefault/warehouse', ['name' => '---', 'password' => '']))->dispatch();
header('Location: /');
});