From 6206f10b7f9863206fc162704b98bf28ef766d9c Mon Sep 17 00:00:00 2001 From: Johannes Frielingsdorf Date: Mon, 18 Jan 2021 18:27:20 +0100 Subject: [PATCH 1/3] use user as key for encryption as in other usages #6869 --- .../jabref/gui/shared/SharedDatabaseLoginDialogViewModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jabref/gui/shared/SharedDatabaseLoginDialogViewModel.java b/src/main/java/org/jabref/gui/shared/SharedDatabaseLoginDialogViewModel.java index bf6033e80a6..eed130a2f35 100644 --- a/src/main/java/org/jabref/gui/shared/SharedDatabaseLoginDialogViewModel.java +++ b/src/main/java/org/jabref/gui/shared/SharedDatabaseLoginDialogViewModel.java @@ -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); } From e1aebb81763d63a7dbb7b41f1e7ab695495f6e00 Mon Sep 17 00:00:00 2001 From: Johannes Frielingsdorf Date: Mon, 18 Jan 2021 18:33:40 +0100 Subject: [PATCH 2/3] add fix message to changelog #6869 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4a9c21d2ba..4b228762246 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve - We fixed an issue where application dialogs were opening in the wrong display when using multiple screens [#7273](https://github.com/JabRef/jabref/pull/7273) - We fixed an issue where an exception would be displayed for previewing and preferences when a custom theme has been configured but is missing [#7177](https://github.com/JabRef/jabref/issues/7177) - We fixed an issue where the field `urldate` was not exported to the corresponding fields `YearAccessed`, `MonthAccessed`, `DayAccessed` in MS Office XML [#7354](https://github.com/JabRef/jabref/issues/7354) +- We fixed an issue where the password for a shared SQL database was only remembered if it was the same as the username #6869 ### Removed From 7cbd368fa20782fbaa01c6dd8cfa8715015d53b1 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 18 Jan 2021 20:33:55 +0100 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b228762246..f68307cf16d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,7 +30,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve - We fixed an issue where application dialogs were opening in the wrong display when using multiple screens [#7273](https://github.com/JabRef/jabref/pull/7273) - We fixed an issue where an exception would be displayed for previewing and preferences when a custom theme has been configured but is missing [#7177](https://github.com/JabRef/jabref/issues/7177) - We fixed an issue where the field `urldate` was not exported to the corresponding fields `YearAccessed`, `MonthAccessed`, `DayAccessed` in MS Office XML [#7354](https://github.com/JabRef/jabref/issues/7354) -- We fixed an issue where the password for a shared SQL database was only remembered if it was the same as the username #6869 +- We fixed an issue where the password for a shared SQL database was only remembered if it was the same as the username [#6869](https://github.com/JabRef/jabref/issues/6869) ### Removed