• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/authentication/shortcode.php
  • Класс: BitrixMainAuthenticationShortCode
  • Вызов: ShortCode::__construct
public function __construct(Context $context, $type = UserAuthCodeTable::TYPE_EMAIL)
{
	$this->context = $context;
	$this->type = $type;

	if(!$this->load())
	{
		throw new MainObjectException("User probably not found: ".$context->getUserId());
	}
}