Merge pull request #7468 from nextcloud/bugfix/delete-proxypass-whenempty

This commit is contained in:
Claudio Cambra 2024-11-08 12:55:16 +08:00 committed by GitHub
commit c0ffd38778
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -363,6 +363,8 @@ void AccountManager::saveAccountHelper(Account *acc, QSettings &settings, bool s
connect(job, &QKeychain::Job::finished, this, [](const QKeychain::Job *const incomingJob) {
if (incomingJob->error() == QKeychain::NoError) {
qCInfo(lcAccountManager) << "Deleted proxy password from keychain";
} else if (incomingJob->error() == QKeychain::EntryNotFound) {
qCDebug(lcAccountManager) << "Proxy password not found in keychain, can't delete";
} else {
qCWarning(lcAccountManager) << "Failed to delete proxy password to keychain" << incomingJob->errorString();
}