Documentation

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

ParameterDescriptionVersion
$newSecretEmployed user secret.

Example



© «Bitrix24», 2001-2024
Up