mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-08 22:02:24 +00:00
Add notes support for TOTP entries
This commit is contained in:
1 parent
90e1631efb
commit
467bdd3d04
4 files changed
+22
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user