• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/security/mfa/otpalgorithm.php
  • Класс: BitrixMainSecurityMfaOtpAlgorithm
  • Вызов: OtpAlgorithm::verify
public function verify($input, $params = null);

/**
 * Return synchronized user params for provided inputs
 *
 * @param string $inputA First code.
 * @param string|null $inputB Second code. Must be provided if current OtpAlgorithm required it (see isTwoCodeRequired).
 * @return string
 * @throws OtpException
 */
abstract public function getSyncParameters($inputA, $inputB);

/**
 * Require or not _two_ code for synchronize parameters
 *
 * @return bool
 */
public function isTwoCodeRequired()
{
	return $this->requireTwoCode;
}