From: Christian Kamm Date: Mon, 22 May 2017 07:32:11 +0000 (+0200) Subject: Account: forget credentials on delete #5752 X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~720 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b7ed0fce2a18bceab594abba643ceb5a989ada77;p=nextcloud-desktop.git Account: forget credentials on delete #5752 --- diff --git a/src/gui/accountmanager.cpp b/src/gui/accountmanager.cpp index a54a1b6c8..fe8d98127 100644 --- a/src/gui/accountmanager.cpp +++ b/src/gui/accountmanager.cpp @@ -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));