Documentation

useCode

boolean public static
\Bitrix\Security\Mfa\RecoveryCodesTable::useCode(
 integer $userId,
 string $searchCode
);

Static method "uses" recovery code for a user.

Parameters

ParameterDescriptionVersion
$userIdUser ID.
$searchCodeRecovery code in the applicable format (see. RecoveryCodesTable::CODE_PATTERN).

Exceptions

Example



© «Bitrix24», 2001-2024