Account: forget credentials on delete #5752

This commit is contained in:
Christian Kamm 2017-05-22 09:32:11 +02:00 коммит произвёл ckamm
Родитель 57d965aeba
Коммит b7ed0fce2a
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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));