mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 14:36:01 +03:00
19491ff85f
- 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>
11 lines
650 B
C++
11 lines
650 B
C++
// stub to prevent linker error
|
|
#include "accountmanager.h"
|
|
|
|
OCC::AccountManager *OCC::AccountManager::instance() { return static_cast<AccountManager *>(new QObject); }
|
|
void OCC::AccountManager::save(bool) { }
|
|
void OCC::AccountManager::saveAccountState(AccountState *) { }
|
|
void OCC::AccountManager::deleteAccount(AccountState *) { }
|
|
void OCC::AccountManager::accountRemoved(OCC::AccountState*) { }
|
|
OCC::AccountStatePtr OCC::AccountManager::account(const QString &){ return AccountStatePtr(); }
|
|
void OCC::AccountManager::removeAccountFolders(OCC::AccountState*) { }
|
|
const QMetaObject OCC::AccountManager::staticMetaObject = QObject::staticMetaObject;
|