1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
wrapper_auth_result.php
См. документацию.
1
<?php
2
3
use
Bitrix\Main\Web\Json
;
4
5
if
(!defined(
"B_PROLOG_INCLUDED"
) || B_PROLOG_INCLUDED!==
true
)
6
{
7
die
();
8
}
9
10
if
(!is_array($arAuthResult))
11
{
12
$arAuthResult =
array
(
"TYPE"
=>
"ERROR"
,
"MESSAGE"
=> $arAuthResult);
13
}
14
15
if
($inc_file ===
"otp"
)
16
{
17
$arAuthResult[
'CAPTCHA'
] =
CModule::IncludeModule
(
"security"
)
18
&&
\Bitrix\Security\Mfa\Otp::isCaptchaRequired
();
19
}
20
elseif
($inc_file ==
'forgot_password'
|| $inc_file ==
'change_password'
)
21
{
22
$arAuthResult[
'CAPTCHA'
] =
COption::GetOptionString
(
"main"
,
"captcha_restoring_password"
,
"N"
) ==
"Y"
;
23
}
24
else
25
{
26
$arAuthResult[
'CAPTCHA'
] =
$APPLICATION
->NeedCAPTHAForLogin(
$last_login
);
27
}
28
29
if
($arAuthResult[
'CAPTCHA'
])
30
{
31
$arAuthResult[
'CAPTCHA_CODE'
] =
$APPLICATION
->CaptchaGetCode();
32
}
33
34
if
(is_string($arAuthResult[
'MESSAGE'
]))
35
{
36
$arAuthResult[
'MESSAGE'
] = str_replace(
'<br>'
,
''
, $arAuthResult[
'MESSAGE'
]);
37
}
38
39
if
(
$bOnHit
):
40
?>
41
<script>
42
BX.ready(
function
(){BX.defer(BX.adminLogin.setAuthResult, BX.adminLogin)(<?= Json::encode($arAuthResult) ?>);});
43
</script>
44
<?
45
else
:
46
?>
47
<script bxrunfirst=
"true"
>
48
top
.BX.adminLogin.setAuthResult(<?= Json::encode($arAuthResult) ?>);
49
</script>
50
<?
51
endif
;
52
?>
$APPLICATION
global $APPLICATION
Определения
include.php:80
Bitrix\Main\Web\Json
Определения
json.php:9
Bitrix\Security\Mfa\Otp\isCaptchaRequired
static isCaptchaRequired()
Определения
otp.php:1335
CAllOption\GetOptionString
static GetOptionString($module_id, $name, $def="", $site=false, $bExactSite=false)
Определения
option.php:8
CModule\IncludeModule
static IncludeModule($module_name)
Определения
module.php:151
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
top
bx_acc_lim_group_list limitGroupList[] multiple<?=$group[ 'ID']?> ID selected margin top
Определения
file_new.php:657
endif
endif
Определения
csv_new_setup.php:990
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
die
die
Определения
quickway.php:367
$last_login
$last_login
Определения
wrapper.php:52
$bOnHit
if(isset($_REQUEST['bxsender'])) $bOnHit
Определения
wrapper.php:61
bitrix
modules
main
interface
auth
wrapper_auth_result.php
Создано системой
1.14.0