diff --git a/CLAUDE.md b/CLAUDE.md
index 70bbfa9..cb45a33 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -99,7 +99,6 @@ Main entities: Users, Packages, Servers, Sites, Databases, Certificates, Cronjob
### Important Environment Variables
```
PLOI_TOKEN= # Ploi API token
-PLOI_CORE_TOKEN= # Ploi Core API token
APP_DEMO=false # Demo mode toggle
STRIPE_KEY= # Stripe public key
STRIPE_SECRET= # Stripe secret key
diff --git a/app/Console/Commands/Core/Install.php b/app/Console/Commands/Core/Install.php
index 74ac137..d76f710 100644
--- a/app/Console/Commands/Core/Install.php
+++ b/app/Console/Commands/Core/Install.php
@@ -142,12 +142,11 @@ class Install extends Command
]);
}
- protected function getCompany($ploiCoreKey, $token)
+ protected function getCompany($token)
{
$response = Http::withHeaders([
'Accept' => 'application/json',
- 'Content-Type' => 'application/json',
- 'X-Ploi-Core-Key' => $ploiCoreKey
+ 'Content-Type' => 'application/json'
])
->withToken($token)
->get((new Ploi)->url . 'ping');
@@ -279,11 +278,7 @@ class Install extends Command
$ploiApiToken = $this->ask('Enter the Ploi API token', env('PLOI_TOKEN'));
} while (empty($ploiApiToken));
- do {
- $ploiCoreKey = $this->ask('Enter the Ploi Core key', env('PLOI_CORE_TOKEN'));
- } while (empty($ploiCoreKey));
-
- $this->company = $this->getCompany($ploiCoreKey, $ploiApiToken);
+ $this->company = $this->getCompany($ploiApiToken);
if (!$this->company) {
$this->error('Could not authenticate with ploi.io, please retry by running this command again.');
@@ -304,7 +299,6 @@ class Install extends Command
}
$this->writeToEnvironmentFile('PLOI_TOKEN', $ploiApiToken);
- $this->writeToEnvironmentFile('PLOI_CORE_TOKEN', $ploiCoreKey);
$name = $this->ask('What is the name of your company? (Press enter to keep the name here)', $this->company['name']);
$this->writeToEnvironmentFile('APP_NAME', $name);
diff --git a/app/Http/Middleware/InstallationComplete.php b/app/Http/Middleware/InstallationComplete.php
index e234b64..2e766d6 100644
--- a/app/Http/Middleware/InstallationComplete.php
+++ b/app/Http/Middleware/InstallationComplete.php
@@ -38,7 +38,6 @@ class InstallationComplete
protected function isInstallationComplete()
{
return config('app.key') &&
- config('services.ploi.token') &&
- config('services.ploi.core-token');
+ config('services.ploi.token');
}
}
diff --git a/app/Jobs/Core/Ping.php b/app/Jobs/Core/Ping.php
index 1f92c45..0882dc3 100644
--- a/app/Jobs/Core/Ping.php
+++ b/app/Jobs/Core/Ping.php
@@ -23,8 +23,7 @@ class Ping implements ShouldQueue
$response = Http::withHeaders([
'Accept' => 'application/json',
- 'Content-Type' => 'application/json',
- 'X-Ploi-Core-Key' => config('services.ploi.core-token')
+ 'Content-Type' => 'application/json'
])
->withToken(config('services.ploi.token'))
->post((new Ploi)->url . 'ping', [
diff --git a/phpunit.xml b/phpunit.xml
index 44b5124..62e922c 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -20,7 +20,6 @@
-