mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-31 00:40:47 +00:00
commit
ad9a5f5a43
1 changed files with 7 additions and 0 deletions
|
@ -876,6 +876,13 @@ trait AdminSettingsController
|
|||
if (! $isValid) {
|
||||
return response()->json(['error' => true, 's3_vce' => true, 'message' => "<div class='border border-danger text-danger p-3 font-weight-bold rounded-lg'>The S3/Spaces credentials you provided are invalid, or the bucket does not have the proper permissions.</div><br/>Please check all fields and try again.<br/><br/><strong>Any cloud storage configuration changes you made have NOT been saved due to invalid credentials.</strong>"], 400);
|
||||
}
|
||||
|
||||
ConfigCacheService::put($dkey . 'key', $key);
|
||||
ConfigCacheService::put($dkey . 'secret', $secret);
|
||||
ConfigCacheService::put($dkey . 'region', $region);
|
||||
ConfigCacheService::put($dkey . 'bucket', $bucket);
|
||||
ConfigCacheService::put($dkey . 'endpoint', $endpoint);
|
||||
ConfigCacheService::put($dkey . 'url', $url);
|
||||
}
|
||||
$res['changes'] = json_encode($changes);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue