Skip to content

Commit

Permalink
feat: extend bot registration restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
Grafikart committed Jan 4, 2025
1 parent 7847cf9 commit 6c84a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controller/RegistrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function register(
if ($form->isSubmitted() && $form->isValid()) {
// On shadow inscrit les bots
$location = $ipService->getLocation($request->getClientIp() ?? '');
if ($location && in_array($location->country, ['IN', 'VN', 'RU', 'CN'])) {
if ($location && in_array($location->country, ['IN', 'VN', 'RU', 'CN', 'UA'])) {
$this->addFlash(
'success',
'Votre compte a été créé avec succès'
Expand Down

0 comments on commit 6c84a54

Please sign in to comment.