first commit
This commit is contained in:
14
admin/logout.php
Normal file
14
admin/logout.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
use KupShop\AdminBundle\Util\LegacyAdminCredentials;
|
||||
use KupShop\KupShopBundle\Util\Compat\ServiceContainer;
|
||||
|
||||
/** @var LegacyAdminCredentials $legacyAdminCredentials */
|
||||
$legacyAdminCredentials = ServiceContainer::getService(LegacyAdminCredentials::class);
|
||||
|
||||
$legacyAdminCredentials->unsetLoginSession();
|
||||
|
||||
$url = (getVal('url') != '') ? '&url='.getVal('url') : '';
|
||||
redirect('index.php?error=5'.$url);
|
||||
|
||||
// ##############################################################
|
||||
Reference in New Issue
Block a user