Create history item when setting up a TOTP seed, resolves #1445

This commit is contained in:
Janek Bevendorff 2018-02-01 17:58:15 +01:00
parent 9c51e1af18
commit 17e3f1c21f
3 changed files with 15 additions and 0 deletions

View file

@ -350,6 +350,7 @@ QString Entry::totp() const
void Entry::setTotp(const QString& seed, quint8& step, quint8& digits)
{
beginUpdate();
if (step == 0) {
step = Totp::defaultStep;
}
@ -376,6 +377,7 @@ void Entry::setTotp(const QString& seed, quint8& step, quint8& digits)
}
m_attributes->set("TOTP Settings", data);
}
endUpdate();
}
QString Entry::totpSeed() const