mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-18 02:05:36 +00:00
chore: verify DSN after the limit verification
This commit is contained in:
parent
e1e54d9e26
commit
6a7091ac00
@ -94,8 +94,6 @@ class WatchListController extends AbstractController
|
||||
$user = $this->getUser();
|
||||
$watchList->setUser($user);
|
||||
|
||||
$this->verifyWebhookDSN($watchList);
|
||||
|
||||
/*
|
||||
* In the limited version, we do not want a user to be able to register the same domain more than once in their watchlists.
|
||||
* This policy guarantees the equal probability of obtaining a domain name if it is requested by several users.
|
||||
@ -141,6 +139,8 @@ class WatchListController extends AbstractController
|
||||
}
|
||||
}
|
||||
|
||||
$this->verifyWebhookDSN($watchList);
|
||||
|
||||
$user = $this->getUser();
|
||||
$this->logger->info('User {username} registers a Watchlist ({token}).', [
|
||||
'username' => $user->getUserIdentifier(),
|
||||
@ -189,8 +189,6 @@ class WatchListController extends AbstractController
|
||||
$user = $this->getUser();
|
||||
$watchList->setUser($user);
|
||||
|
||||
$this->verifyWebhookDSN($watchList);
|
||||
|
||||
if ($this->getParameter('limited_features')) {
|
||||
if ($watchList->getDomains()->count() > (int) $this->getParameter('limit_max_watchlist_domains')) {
|
||||
$this->logger->notice('User {username} tried to update a Watchlist. The maximum number of domains has been reached for this Watchlist', [
|
||||
@ -227,6 +225,8 @@ class WatchListController extends AbstractController
|
||||
}
|
||||
}
|
||||
|
||||
$this->verifyWebhookDSN($watchList);
|
||||
|
||||
$this->logger->info('User {username} updates a Watchlist ({token}).', [
|
||||
'username' => $user->getUserIdentifier(),
|
||||
'token' => $watchList->getToken(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user