Account: forget credentials on delete #5752
authorChristian Kamm <mail@ckamm.de>
Mon, 22 May 2017 07:32:11 +0000 (09:32 +0200)
committerckamm <mail@ckamm.de>
Mon, 22 May 2017 08:49:11 +0000 (10:49 +0200)
src/gui/accountmanager.cpp

index a54a1b6c81a5eb6afe9d962e69bd10b78a6abace..fe8d98127866bdb63e6b5a27de6131a3b6d05e34 100644 (file)
@@ -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));