useCode
boolean public static \Bitrix\Security\Mfa\RecoveryCodesTable::useCode( integer $userId, string $searchCode );
Static method "uses" recovery code for a user.
Parameters
Parameter | Description | Version |
---|---|---|
$userId | User ID. | |
$searchCode | Recovery code in the applicable format (see. RecoveryCodesTable::CODE_PATTERN ). |
Exceptions
- ArgumentException (
Bitrix\Main\ArgumentException
) - ArgumentTypeException (
Bitrix\Main\ArgumentTypeException
)
Example
© «Bitrix24», 2001-2024