From 3bf5ac06bf58ab78b11d6adfc2accfc2a4a076d5 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 2 Jun 2025 13:55:58 +0200 Subject: [PATCH] wip #7567 @1 --- app/Models/FluidbookExternalInstallServer.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Models/FluidbookExternalInstallServer.php b/app/Models/FluidbookExternalInstallServer.php index 67f18560c..6d9144bc4 100644 --- a/app/Models/FluidbookExternalInstallServer.php +++ b/app/Models/FluidbookExternalInstallServer.php @@ -194,11 +194,12 @@ class FluidbookExternalInstallServer extends ExternalServer public static function verifyServerConnexion(array $data) { $isHosting = static::isHostingProtocol($data['protocol']); + $noRequired = $isHosting || in_array($data['protocol'], ['S3', 'GCS']); $validation = [ - 'password' => $isHosting ? 'nullable' : 'required|string|min:8', - 'username' => $isHosting ? 'nullable' : 'required|string|max:255', - 'host' => $isHosting ? 'nullable' : 'required|string|max:255', + 'password' => $noRequired ? 'nullable' : 'required|string|min:8', + 'username' => $noRequired ? 'nullable' : 'required|string|max:255', + 'host' => $noRequired ? 'nullable' : 'required|string|max:255', 'subdomains' => 'nullable', 'port' => 'nullable|numeric', ]; -- 2.39.5