separate session var names between frontend and backend
This commit is contained in:
@ -15,6 +15,7 @@
|
||||
|
||||
namespace D3\Webauthn\tests\integration;
|
||||
|
||||
use D3\Webauthn\Application\Model\WebauthnConf;
|
||||
use OxidEsales\Eshop\Application\Controller\Admin\LoginController;
|
||||
use OxidEsales\Eshop\Core\DatabaseProvider;
|
||||
use OxidEsales\Eshop\Core\Registry;
|
||||
@ -31,7 +32,7 @@ class passwordAdminAuthTest extends integrationTestCase
|
||||
public function createTestData()
|
||||
{
|
||||
$admin = DatabaseProvider::getDb()->getOne('SELECT oxid FROM oxuser WHERE oxrights = "malladmin"');
|
||||
Registry::getSession()->setVariable('auth', $admin);
|
||||
Registry::getSession()->setVariable(WebauthnConf::OXID_ADMIN_AUTH, $admin);
|
||||
$this->createUser(
|
||||
$this->userList[1],
|
||||
[
|
||||
|
Reference in New Issue
Block a user