Skip to content

Commit

Permalink
Account: forget credentials on delete #5752
Browse files Browse the repository at this point in the history
  • Loading branch information
ckamm committed May 22, 2017
1 parent 5eaae83 commit ddf0276
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/accountmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ void AccountManager::deleteAccount(AccountState *account)
auto copy = *it; // keep a reference to the shared pointer so it does not delete it just yet
_accounts.erase(it);

// Forget account credentials, cookies
account->account()->credentials()->forgetSensitiveData();
QFile::remove(account->account()->cookieJarPath());

auto settings = Utility::settingsWithGroup(QLatin1String(accountsC));
Expand Down

0 comments on commit ddf0276

Please sign in to comment.