diff --git a/app/Services/Subscription/StepService.php b/app/Services/Subscription/StepService.php index 25d4027df5b6..84ed67ecf965 100644 --- a/app/Services/Subscription/StepService.php +++ b/app/Services/Subscription/StepService.php @@ -49,6 +49,15 @@ class StepService } } + $auth = collect($dependencies) + ->filter(fn ($dependency) => str_starts_with($dependency['id'], 'auth.')) + ->keys() + ->toArray(); + + if (count(array_intersect($auth, $steps)) === 0) { + $errors[] = ctrans('texts.step_authentication_fail'); + } + return $errors; }