getByUser
static public static \Bitrix\Security\Mfa\Otp::getByUser( integer $userId );
Static method returns new instance for the user by its ID.
Parameters
Parameter | Description | Version |
---|---|---|
$userId | User ID. |
Exceptions
- ArgumentOutOfRangeException (
Bitrix\Main\ArgumentOutOfRangeException
) - ArgumentTypeException (
Bitrix\Main\ArgumentTypeException
)
Example
© «Bitrix24», 2001-2024