if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true)
die();
...
if (Tools::isAjax()) {
global $USER, $APPLICATION;
$APPLICATION->RestartBuffer();
...
echo json_encode();
exit;
}
...
$this->IncludeComponentTemplate();
$APPLICATION->arAuthResult = $arAuthResult;
if ($APPLICATION->arAuthResult && is_bool($APPLICATION->arAuthResult)) {
echo json_encode([
'success' => true,
'data' => [
'reload' => true
]
]);
require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/epilog_after.php');
exit;
$APPLICATION->RestartBuffer();
...
$arAuthResult = $USER->Login($_REQUEST['username'], $_REQUEST['password'], $remember);
$APPLICATION->arAuthResult = $arAuthResult;
if ($APPLICATION->arAuthResult && is_bool($APPLICATION->arAuthResult)) {
echo json_encode([
'success' => true,
'data' => [
'reload' => true
]
]);
exit;
}
if (response.data.reload) {
window.location.reload();
}
let $ = EntryPoint.jQuery();//Uncaught TypeError: EntryPoint.jQuery is not a function
let $ = EntryPoint.jQuery
$(...;//Uncaught TypeError: $ is not a function
А не подскажите в чем может быть проблема на скрине (выше в комментариях к вопросу отписался)?