diff options
author | Michael Schuster <michael@schuster.ms> | 2019-12-08 02:00:02 +0300 |
---|---|---|
committer | Michael Schuster <48932272+misch7@users.noreply.github.com> | 2019-12-08 04:47:22 +0300 |
commit | 0c5f4a15251c64848f3ab1071f8b10c9cb9ad651 (patch) | |
tree | 187cff368c9c349371fc81a9aacd616e56fa56b2 /src/gui/remotewipe.cpp | |
parent | 6ef9f3cc26d6f96dee93a9e2a608ba3f12088489 (diff) |
Remote Wipe: Implement hack to allow deleting all keychain entries (SSL certs & keys)
Client SSL certificates and keys cannot be deleted at this time because there is
no UI for selecting them on re-login.
We introduce this dirty hack here, to allow deleting them upon Remote Wipe.
Signed-off-by: Michael Schuster <michael@schuster.ms>
Diffstat (limited to 'src/gui/remotewipe.cpp')
-rw-r--r-- | src/gui/remotewipe.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/remotewipe.cpp b/src/gui/remotewipe.cpp index 176cda547..061acb2e0 100644 --- a/src/gui/remotewipe.cpp +++ b/src/gui/remotewipe.cpp @@ -100,6 +100,18 @@ void RemoteWipe::checkJobSlot() auto accountState = manager->account(_account->displayName()).data(); if(wipe){ + /* IMPORTANT - remove later - FIXME MS@2019-12-07 --> + * TODO: For "Log out" & "Remove account": Remove client CA certs and KEY! + * + * Disabled as long as selecting another cert is not supported by the UI. + * + * Being able to specify a new certificate is important anyway: expiry etc. + * + * We introduce this dirty hack here, to allow deleting them upon Remote Wipe. + */ + _account->setRemoteWipeRequested_HACK(); + // <-- FIXME MS@2019-12-07 + // delete account manager->deleteAccount(accountState); manager->save(); |