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
Parameter | Description | Version |
---|---|---|
$input | User inputted data. | |
$params | Synchronized user data, saved for algorithm (see. getSyncParameters - \Bitrix\Security\Mfa\TotpAlgorithm::getSyncParameters ). | |
$time | Corrected system time. |
Exceptions
- ArgumentOutOfRangeException (
Bitrix\Main\ArgumentOutOfRangeException
) - ArgumentTypeException (
Bitrix\Main\ArgumentTypeException
)
Example
© «Bitrix24», 2001-2024