Commit aabca85c authored by Lamarque Souza's avatar Lamarque Souza
Browse files

Do not save PIN in wallet or configuration file. PIN is now one-time

only.

CCBUG: 264083
parent c82273c0
......@@ -182,6 +182,10 @@ void ConnectionPersistence::save()
foreach (Setting * setting, m_connection->settings()) {
SettingPersistence * sp = persistenceFor(setting);
QMap<QString,QString> secrets = sp->secrets();
// Do not save pin.
secrets.take("pin");
if (!secrets.isEmpty()) {
wallet->writeMap(walletKeyFor(setting), secrets);
}
......
......@@ -27,7 +27,8 @@ void GsmPersistence::load()
// SECRETS
if (m_storageMode == ConnectionPersistence::PlainText) {
setting->setPassword(m_config->readEntry("password", ""));
setting->setPin(m_config->readEntry("pin", ""));
// Do not read pin.
//setting->setPin(m_config->readEntry("pin", ""));
setting->setSecretsAvailable(true);
}
setting->setInitialized();
......@@ -45,7 +46,8 @@ void GsmPersistence::save()
// SECRET
if (m_storageMode == ConnectionPersistence::PlainText) {
m_config->writeEntry("password", setting->password());
m_config->writeEntry("pin", setting->pin());
// Do not save pin.
//m_config->writeEntry("pin", setting->pin());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment