Ensured empty initial PAI keys are discarded

This commit is contained in:
Alejandro Celaya
2022-09-18 09:29:38 +02:00
parent c7f0d14c1b
commit 3f01fad12f
2 changed files with 5 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ class InitialApiKeyDelegator
public function __invoke(ContainerInterface $container, string $serviceName, callable $callback): Application
{
$initialApiKey = $container->get('config')['initial_api_key'] ?? null;
if ($initialApiKey !== null) {
if (! empty($initialApiKey)) {
$this->createInitialApiKey($initialApiKey, $container);
}