mirror of
https://github.com/Terranom674/Piwigo_Bratonien_Tools.git
synced 2026-09-19 12:54:31 +00:00
Remove obsolete database credential field from WebDAV secrets
This commit is contained in:
@@ -21,7 +21,6 @@ function bratonien_tools_nc_connector_scoped_secret(array $connection)
|
|||||||
|
|
||||||
return array(
|
return array(
|
||||||
'v'=>3,
|
'v'=>3,
|
||||||
'db_password'=>'',
|
|
||||||
'piwigo_user'=>(string)($decoded['piwigo_user'] ?? ''),
|
'piwigo_user'=>(string)($decoded['piwigo_user'] ?? ''),
|
||||||
'piwigo_password'=>(string)($decoded['piwigo_password'] ?? ''),
|
'piwigo_password'=>(string)($decoded['piwigo_password'] ?? ''),
|
||||||
'api_key_id'=>(string)($decoded['api_key_id'] ?? ''),
|
'api_key_id'=>(string)($decoded['api_key_id'] ?? ''),
|
||||||
@@ -44,7 +43,7 @@ function bratonien_tools_nc_connector_store_scoped_secret($id, array $connection
|
|||||||
}
|
}
|
||||||
|
|
||||||
$credentials['v'] = 3;
|
$credentials['v'] = 3;
|
||||||
$credentials['db_password'] = '';
|
unset($credentials['db_password']);
|
||||||
$payload = json_encode($credentials, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
|
$payload = json_encode($credentials, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
|
||||||
if (!is_string($payload)) throw new RuntimeException('Verbindungszugangsdaten konnten nicht serialisiert werden.');
|
if (!is_string($payload)) throw new RuntimeException('Verbindungszugangsdaten konnten nicht serialisiert werden.');
|
||||||
$blob = bratonien_tools_nc_connector_encrypt_secret($payload);
|
$blob = bratonien_tools_nc_connector_encrypt_secret($payload);
|
||||||
|
|||||||
Reference in New Issue
Block a user