Documentation

verify

array public
\Bitrix\Security\Mfa\TotpAlgorithm::verify(
 string $input,
 string $params = '0:0',
 integer|null $time = null
);

Non-static method confirms user-inputted data.

Paraemters

ParameterDescriptionVersion
$inputUser inputted data.
$paramsSynchronized user data, saved for algorithm (see. getSyncParameters - \Bitrix\Security\Mfa\TotpAlgorithm::getSyncParameters).
$timeCorrected system time.

Exceptions

Example



© «Bitrix24», 2001-2024
Up