• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/lib/mfa/otp.php
  • Класс: BitrixSecurityMfaOtp
  • Вызов: Otp::isAttemptsReached
public function isAttemptsReached()
{
	$attempts  = $this->getAttempts();
	$maxAttempts = $this->getMaxLoginAttempts();
	return (bool) (
		$maxAttempts > 0
		&& $attempts >= $maxAttempts
	);
}