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
deactivate
\Bitrix\Security\Mfa\Otp public \Bitrix\Security\Mfa\Otp::deactivate( integer $days );
Non-static method deactivates OTP for user for a necessary number of days or permanently.
Parameters
Parameter | Description | Version |
---|---|---|
$days | Number of days. Zero means deactivate permanently. |
Exception
\Bitrix\Security\Mfa\OtpException
Example
© «Bitrix24», 2001-2024
Up