[Fixed] Logout urls
This commit is contained in:
parent
63ddeca3aa
commit
6b67e414e6
|
@ -84,7 +84,7 @@
|
||||||
// logout from admin
|
// logout from admin
|
||||||
$R->get('logout/?', function(){
|
$R->get('logout/?', function(){
|
||||||
$_SERVER['REQUEST_METHOD'] = 'POST';
|
$_SERVER['REQUEST_METHOD'] = 'POST';
|
||||||
$req = new Request('authentificationDefault/admin', ['username' => ' ', 'password' => '']);
|
$req = new Request('authentificationDefault/admin', ['username' => '-', 'password' => '']);
|
||||||
$res = $req->dispatch();
|
$res = $req->dispatch();
|
||||||
header('Location: /');
|
header('Location: /');
|
||||||
});
|
});
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
// warehouse logout
|
// warehouse logout
|
||||||
$R->get('logout/?', function(){
|
$R->get('logout/?', function(){
|
||||||
$_SERVER['REQUEST_METHOD'] = 'POST';
|
$_SERVER['REQUEST_METHOD'] = 'POST';
|
||||||
(new Request('authentificationDefault/warehouse', ['name' => ' ', 'password' => '']))->dispatch();
|
(new Request('authentificationDefault/warehouse', ['name' => '---', 'password' => '']))->dispatch();
|
||||||
header('Location: /');
|
header('Location: /');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue