D7 API documentation
What's New
Modules
activate
canSkipMandatory
canSkipMandatoryByRights
deactivate
defer
delete
getAlgorithm
getAppSecret
getAttempts
getAvailableTypes
getByType
getByUser
getContext
getDefaultType
getDeferredParams
getHexSecret
getInitialDate
getIssuer
getLabel
getMandatoryRights
getParams
getProvisioningUri
getSecret
getSkipMandatoryDays
getSyncParameters
getType
getTypesDescription
getUserId
getUserLogin
isActivated
isAttemptsReached
isCaptchaRequired
isMandatorySkipped
isMandatoryUsing
isOtpEnabled
isOtpRequired
isOtpRequiredByMandatory
isRecoveryCodesEnabled
regenerate
save
setActive
setAppSecret
setContext
setDefaultType
setDeferredParams
setHexSecret
setIssuer
setLabel
setMandatoryRights
setMandatoryUsing
setSecret
setSkipMandatoryDays
setType
setUserInfo
setUserLogin
syncParameters
verify
verifyUser
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
Up