From bad0d55140a4a8f1055deb8415244605ffb77741 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 5 Nov 2024 15:54:34 +0100 Subject: [PATCH] wip #7175 @0:10 --- src/app/Magic/Models/ExternalServer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/Magic/Models/ExternalServer.php b/src/app/Magic/Models/ExternalServer.php index 8af8d2b..8ff4c5d 100644 --- a/src/app/Magic/Models/ExternalServer.php +++ b/src/app/Magic/Models/ExternalServer.php @@ -36,7 +36,7 @@ class ExternalServer extends CubistMagicAbstractModel implements IServer $this->addField('password', Password::class, __('Mot de passe'), ['when' => ['protocol' => $this->getPasswordProtocols()]]); $this->addField('region', Text::class, __('Région'), ['when' => ['protocol' => 'S3']]); $this->addField('endpoint', URL::class, __('Endpoint'), ['when' => ['protocol' => 'S3Compatible']]); - $this->addField('key', Text::class, __('Clé d\'accès'), ['when' => ['protocol' => $this->getS3Protocols()]]); + $this->addField('access_key', Text::class, __('Clé d\'accès'), ['when' => ['protocol' => $this->getS3Protocols()]]); $this->addField('secret', Password::class, __('Secret'), ['when' => ['protocol' => $this->getS3Protocols()]]); $this->addField('bucket', Text::class, __('Bucket'), ['when' => ['protocol' => $this->getS3Protocols()]]); $this->addField('base_path', Text::class, __('Chemin de base'), ['default' => '/']); @@ -156,9 +156,9 @@ class ExternalServer extends CubistMagicAbstractModel implements IServer return $this->region; } - public function getKey() + public function getAccessKey() { - return $this->key; + return $this->access_key; } public function getSecret() -- 2.39.5