mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Merge pull request #5566 from nextcloud/bugfix/tolerateMissingPrivateKey
in case server has no private key, let e2ee init fail
This commit is contained in:
commit
ef5325e6ed
@ -1434,8 +1434,12 @@ void ClientSideEncryption::getPrivateKeyFromServer(const AccountPtr &account)
|
||||
decryptPrivateKey(account, key.toLocal8Bit());
|
||||
} else if (retCode == 404) {
|
||||
qCInfo(lcCse()) << "No private key on the server: setup is incomplete.";
|
||||
emit initializationFinished();
|
||||
return;
|
||||
} else {
|
||||
qCInfo(lcCse()) << "Error while requesting public key: " << retCode;
|
||||
emit initializationFinished();
|
||||
return;
|
||||
}
|
||||
});
|
||||
job->start();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user