From 8fa3fddd52e11e9133a3020741f31163d2122034 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 22 Sep 2017 13:19:30 +0200 Subject: Avoid storing the password on disk for the time being --- framework/src/keyring.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/framework/src/keyring.cpp b/framework/src/keyring.cpp index 7bd406c0..26da66c1 100644 --- a/framework/src/keyring.cpp +++ b/framework/src/keyring.cpp @@ -55,17 +55,12 @@ AccountKeyring::AccountKeyring(const QByteArray &accountId, QObject *parent) void AccountKeyring::storePassword(const QByteArray &resourceId, const QString &password) { - QSettings settings{mAccountIdentifier + ".keyring", QSettings::IniFormat}; - settings.setValue(resourceId, password); Sink::SecretStore::instance().insert(resourceId, password); Keyring::instance()->unlock(mAccountIdentifier); } void AccountKeyring::unlock() { - QSettings settings{mAccountIdentifier + ".keyring", QSettings::IniFormat}; - for (const auto &resourceId : settings.allKeys()) { - Sink::SecretStore::instance().insert(resourceId.toLatin1(), settings.value(resourceId).toString()); - } + //TODO load passwords from an on disk keyring } -- cgit v1.2.3