regenerateCodes
boolean public static \Bitrix\Security\Mfa\RecoveryCodesTable::regenerateCodes( integer $userId );
Static method generates new recovery codes for specified user. Previous recovery codes will be deleted.
Parameters
Parameter | Description | Version |
---|---|---|
$userId | User ID. |
Exceptions
- ArgumentTypeException (
Bitrix\Main\ArgumentTypeException
)
Example
© «Bitrix24», 2001-2024