mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: register the same domain name twice with limited mode
This commit is contained in:
@@ -62,7 +62,7 @@ class DomainRefreshController extends AbstractController
|
||||
return $domain;
|
||||
}
|
||||
|
||||
if (false === $kernel->isDebug()) {
|
||||
if (false === $kernel->isDebug() && true === $this->getParameter('limited_features')) {
|
||||
$limiter = $this->authenticatedApiLimiter->create($userId);
|
||||
if (false === $limiter->consume()->isAccepted()) {
|
||||
$this->logger->warning('User {username} was rate limited by the API.', [
|
||||
|
||||
Reference in New Issue
Block a user