Add notes support for TOTP entries

This commit is contained in:
thePR0M3TH3AN
2025-07-07 15:19:42 -04:00
parent 90e1631efb
commit 467bdd3d04
4 changed files with 22 additions and 0 deletions

View File

@@ -195,6 +195,7 @@ class EntryManager:
index: int | None = None,
period: int = 30,
digits: int = 6,
notes: str = "",
) -> str:
"""Add a new TOTP entry and return the provisioning URI."""
entry_id = self.get_next_index()
@@ -213,6 +214,7 @@ class EntryManager:
"period": period,
"digits": digits,
"archived": archived,
"notes": notes,
}
else:
entry = {
@@ -223,6 +225,7 @@ class EntryManager:
"period": period,
"digits": digits,
"archived": archived,
"notes": notes,
}
data["entries"][str(entry_id)] = entry