Commit c4da8232 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 108aeb8e
......@@ -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,8 +27,9 @@ void GsmPersistence::load()
// SECRETS
if (m_storageMode == ConnectionPersistence::PlainText) {
setting->setPassword(m_config->readEntry("password", ""));
setting->setPin(m_config->readEntry("pin", ""));
setting->setPuk(m_config->readEntry("puk", ""));
// Do not read pin/puk.
//setting->setPin(m_config->readEntry("pin", ""));
//setting->setPuk(m_config->readEntry("puk", ""));
setting->setSecretsAvailable(true);
}
setting->setInitialized();
......@@ -46,8 +47,9 @@ void GsmPersistence::save()
// SECRET
if (m_storageMode == ConnectionPersistence::PlainText) {
m_config->writeEntry("password", setting->password());
m_config->writeEntry("pin", setting->pin());
m_config->writeEntry("puk", setting->puk());
// Do not save pin/puk.
//m_config->writeEntry("pin", setting->pin());
//m_config->writeEntry("puk", setting->puk());
}
}
......
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