regenerate
\Bitrix\Security\Mfa\Otp public \Bitrix\Security\Mfa\Otp::regenerate( null $newSecret = null );
Non-static method re-initializes OTP (generates new random token (secret), sets standard algorithm and etc.). Must be called before connecting a new device.
Parameters
Parameter | Description | Version |
---|---|---|
$newSecret | Employed user secret. |
Example
© «Bitrix24», 2001-2024