Skip to content

Commit

Permalink
(feat) #6 Makes sure the password is not saved in registry
Browse files Browse the repository at this point in the history
 No ui changes in this commit, leaves password field empty on launch
  • Loading branch information
JacobTrossing committed Mar 2, 2023
1 parent 74dc41b commit bc1181e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/org/jabref/preferences/JabRefPreferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -1545,21 +1545,19 @@ public ProxyPreferences getProxyPreferences() {
if (Objects.nonNull(proxyPreferences)) {
return proxyPreferences;
}

proxyPreferences = new ProxyPreferences(
getBoolean(PROXY_USE),
get(PROXY_HOSTNAME),
get(PROXY_PORT),
getBoolean(PROXY_USE_AUTHENTICATION),
get(PROXY_USERNAME),
get(PROXY_PASSWORD));
(String) defaults.get(PROXY_PASSWORD));

EasyBind.listen(proxyPreferences.useProxyProperty(), (obs, oldValue, newValue) -> putBoolean(PROXY_USE, newValue));
EasyBind.listen(proxyPreferences.hostnameProperty(), (obs, oldValue, newValue) -> put(PROXY_HOSTNAME, newValue));
EasyBind.listen(proxyPreferences.portProperty(), (obs, oldValue, newValue) -> put(PROXY_PORT, newValue));
EasyBind.listen(proxyPreferences.useAuthenticationProperty(), (obs, oldValue, newValue) -> putBoolean(PROXY_USE_AUTHENTICATION, newValue));
EasyBind.listen(proxyPreferences.usernameProperty(), (obs, oldValue, newValue) -> put(PROXY_USERNAME, newValue));
EasyBind.listen(proxyPreferences.passwordProperty(), (obs, oldValue, newValue) -> put(PROXY_PASSWORD, newValue));

return proxyPreferences;
}
Expand Down

0 comments on commit bc1181e

Please sign in to comment.