1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

KWallet - Also store the entry updated time

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2023-01-29 20:59:02 +01:00
parent 053978fca5
commit 7f7955cfcf
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -40,6 +40,7 @@ static QMap<QString, QString> encodeEntry(const PasswordEntry &entry)
{"host", entry.host}, {"host", entry.host},
{"username", entry.username}, {"username", entry.username},
{"password", entry.password}, {"password", entry.password},
{"updated", QString::number(entry.updated)},
{"data", QString::fromUtf8(entry.data)} {"data", QString::fromUtf8(entry.data)}
}; };
return data; return data;
@ -272,6 +273,7 @@ void KWalletPasswordBackend::initialize()
entry.host = j.value()["host"]; entry.host = j.value()["host"];
entry.username = j.value()["username"]; entry.username = j.value()["username"];
entry.password = j.value()["password"]; entry.password = j.value()["password"];
entry.updated = j.value()["updated"].toInt();
entry.data = j.value()["data"].toUtf8(); entry.data = j.value()["data"].toUtf8();
if (entry.isValid()) { if (entry.isValid()) {
m_allEntries.append(entry); m_allEntries.append(entry);