Add notes support for TOTP entries

This commit is contained in:
thePR0M3TH3AN committed 2025-07-07 15:19:42 -04:00
1 parent 90e1631efb
commit 467bdd3d04
4 files changed
+22

No files matched your search

+3
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