Skip to content

Commit

Permalink
Forget passwords when remember box is unchecked
Browse files Browse the repository at this point in the history
When editing an account that's remembered and that previously had
credentials saved.
  • Loading branch information
askmeaboutlo0m committed Dec 22, 2023
1 parent 7b5a951 commit 78d8523
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Unreleased Version 2.2.0-pre
* Fix: Properly update current layer fill source when switching layers.
* Fix: Cap the number of threads used for parallel processing, because 128 core CPUs exist.
* Fix: Move back button in login dialog to the left side. Thanks Blozzom for reporting.
* Fix: Properly forget password when editing account and unchecking the "remember password" box. Thanks Meru for reporting.

2023-12-08 Version 2.2.0-beta.11
* Server Fix: No longer show "cannot look up one session and then join another" when joining a session with an ID alias. Thanks Kink and Fabian for finding this.
Expand Down
4 changes: 3 additions & 1 deletion src/desktop/utils/accountlistmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ void AccountListModel::saveAccount(
return;
}

if(!password.isEmpty()) {
if(password.isEmpty()) {
deletePassword(buildKeychainSecretName(type, host, username));
} else {
savePassword(
password, buildKeychainSecretName(type, host, username),
insecureFallback);
Expand Down

0 comments on commit 78d8523

Please sign in to comment.