зеркало из https://github.com/nextcloud/desktop.git
Account: forget credentials on delete #5752
This commit is contained in:
Родитель
57d965aeba
Коммит
b7ed0fce2a
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче