mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
fix wrong if condition
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
53bf28efd6
commit
fb0b89f5fa
@ -1694,7 +1694,7 @@ void ClientSideEncryption::decryptPrivateKey(const AccountPtr &account, const QB
|
||||
_privateKey = privateKey;
|
||||
} else {
|
||||
const auto deprecatedSha1PrivateKey = EncryptionHelper::decryptPrivateKey(deprecatedSha1Password, key);
|
||||
if (!privateKey.isEmpty()) {
|
||||
if (!deprecatedSha1PrivateKey.isEmpty()) {
|
||||
_privateKey = deprecatedSha1PrivateKey;
|
||||
} else {
|
||||
_privateKey = EncryptionHelper::decryptPrivateKey(deprecatedPassword, key);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user