<?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);

// ##############################################################
