Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamila San <hello@camila.codes>2019-07-24 14:56:21 +0300
committerCamila San <hello@camila.codes>2019-10-17 21:11:31 +0300
commit19491ff85f3cd02952478d2ee1fb42caf252e9dd (patch)
treefd9bc6d7ca455e05a8cd8c5fafae4fc0eca2f792 /src/gui/accountmanager.cpp
parent08c7be5350c949b15776ab52a2b7bf637f3e02a4 (diff)
Once client gets 401/403 from the server, check if remote wipe was requested.
- When the the users logs because of 401 or 403 errors, it checks if the server requested the remote wipe. If yes, locally deletes account and folders connected to the account and notify the server. If no, proceeds to ask the user to login again. - The app password is restored in the keychain. - WIP: The change also includes a test class for RemoteWipe. Signed-off-by: Camila San <hello@camila.codes>
Diffstat (limited to 'src/gui/accountmanager.cpp')
-rw-r--r--src/gui/accountmanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/accountmanager.cpp b/src/gui/accountmanager.cpp
index ca00a4e17..eec375180 100644
--- a/src/gui/accountmanager.cpp
+++ b/src/gui/accountmanager.cpp
@@ -368,6 +368,7 @@ void AccountManager::shutdown()
_accounts.clear();
foreach (const auto &acc, accountsCopy) {
emit accountRemoved(acc.data());
+ emit removeAccountFolders(acc.data());
}
}