• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/controller/authcode.php
  • Класс: BitrixMainControllerAuthCode
  • Вызов: AuthCode::checkOtpCaptcha
protected function checkOtpCaptcha()
{
	global $APPLICATION;

	if(MfaOtp::isCaptchaRequired())
	{
		$this->addError(
			new MainError(
				Loc::getMessage("main_authcode_otp_captcha_required"),
				'ERR_OTP_CAPTCHA_REQUIRED',
				[
					"captchaSid" => $APPLICATION->CaptchaGetCode(),
				]
			)
		);
	}
}