mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-4511 clear secure props if save password is disabled (#2835)
Co-authored-by: Evgenia Bezborodova <139753579+EvgeniaBzzz@users.noreply.github.com>
This commit is contained in:
co-authored by
Evgenia Bezborodova
parent
d118287b0e
commit
de00a60aad
@@ -97,6 +97,10 @@ public class WebDataSourceUtils {
|
||||
private static void setSecureProperties(DBWHandlerConfiguration handlerConfig, WebNetworkHandlerConfigInput cfgInput, boolean ignoreNulls) {
|
||||
var secureProperties = cfgInput.getSecureProperties();
|
||||
if (secureProperties == null) {
|
||||
if (!handlerConfig.isSavePassword()) {
|
||||
// clear all secure properties from handler config
|
||||
handlerConfig.setSecureProperties(Map.of());
|
||||
}
|
||||
return;
|
||||
}
|
||||
for (var pr : secureProperties.entrySet()) {
|
||||
|
||||
Reference in New Issue
Block a user