mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-07 06:27:39 +03:00
Create history item when setting up a TOTP seed, resolves #1445
This commit is contained in:
parent
9c51e1af18
commit
17e3f1c21f
3 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue