• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/classes/general/user.php
  • Класс: CSecurityUser
  • Вызов: CSecurityUser::getCachedOtp
static function getCachedOtp($userId)
{
	if (!isset(static::$cacheOtp[$userId]))
	{
		static::$cacheOtp[$userId] = Otp::getByUser($userId);
	}

	return static::$cacheOtp[$userId];
}