Remove 'status' field
This commit is contained in:
@@ -51,7 +51,6 @@ class AdminLoginControllerCore extends AdminController
|
||||
|
||||
if ($this->ajax && Tools::getValue('action') == 'checkLoginStatus') {
|
||||
$this->ajaxDie(json_encode(array(
|
||||
'status' => true,
|
||||
'is_logged_in' => $this->context->employee->isLoggedBack(),
|
||||
)));
|
||||
}
|
||||
|
||||
@@ -1231,9 +1231,7 @@ function checkIfEmployeeIsLoggedIn() {
|
||||
action : 'checkLoginStatus',
|
||||
},
|
||||
success : function(response) {
|
||||
if (response.status) {
|
||||
resolve(response.is_logged_in);
|
||||
}
|
||||
resolve(response.is_logged_in);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user