• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/lib/mfa/otp.php
  • Класс: BitrixSecurityMfaOtp
  • Вызов: Otp::setDeferredParams
static function setDeferredParams($params)
{
	$kernelSession = Application::getInstance()->getKernelSession();
	if ($params === null)
	{
		unset($kernelSession['BX_SECURITY_OTP']);
	}
	else
	{
		// Probably we does not need save password in deferred params
		// Or need? I don't know right now...
		if (isset($params['PASSWORD']))
			unset($params['PASSWORD']);

		$kernelSession['BX_SECURITY_OTP'] = $params;
	}
}