Skip to content

Commit

Permalink
Fix an issue where the password for a shared SQL database was only re…
Browse files Browse the repository at this point in the history
…membered if it was the same as the username (#7364)
  • Loading branch information
bazjo authored Jan 18, 2021
1 parent deda8a2 commit 1d783b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
- We fixed an issue where the Harvard RTF exporter used the wrong default file extension. [4508](https://github.com/JabRef/jabref/issues/4508)
- We fixed an issue where the Harvard RTF exporter did not use the new authors formatter and therefore did not export "organization" authors correctly. [4508](https://github.com/JabRef/jabref/issues/4508)
- 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](https://github.com/JabRef/jabref/issues/6869)

### Removed

Expand Down
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 1d783b4

Please sign in to comment.