Fixed: Admin login page opens in recommendations popup
This commit is contained in:
@@ -45,6 +45,18 @@ class AdminLoginControllerCore extends AdminController
|
||||
}
|
||||
}
|
||||
|
||||
public function init()
|
||||
{
|
||||
parent::init();
|
||||
|
||||
if ($this->ajax && Tools::getValue('action') == 'checkLoginStatus') {
|
||||
$this->ajaxDie(json_encode(array(
|
||||
'status' => true,
|
||||
'is_logged_in' => $this->context->employee->isLoggedBack(),
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
||||
public function setMedia()
|
||||
{
|
||||
$this->addJquery();
|
||||
|
||||
Reference in New Issue
Block a user