Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
use user as key for encryption as in other usages
Browse files Browse the repository at this point in the history
  • Loading branch information
bazjo committed Jan 18, 2021
1 parent 46c5d73 commit 6206f10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ private void setPreferences() {

if (rememberPassword.get()) {
try {
prefs.setPassword(new Password(password.getValue(), password.getValue()).encrypt());
prefs.setPassword(new Password(password.getValue(), user.getValue()).encrypt());
} catch (GeneralSecurityException | UnsupportedEncodingException e) {
LOGGER.error("Could not store the password due to encryption problems.", e);
}
Expand Down

0 comments on commit 6206f10

Please sign in to comment.