mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-09 15:58:48 +00:00
Add notes support for TOTP entries
This commit is contained in:
@@ -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