Move TOTP secrets to a dedicated entry field (breaks sshyp entry format compatibility)

This commit is contained in:
2024-05-21 19:21:42 -04:00
parent f5c5a28545
commit ca160adabc
5 changed files with 36 additions and 20 deletions
+5 -3
View File
@@ -34,11 +34,13 @@ func EditEntryField(targetLocation string, hidePassword bool, field int) {
case 1:
unencryptedEntry[field] = input("Username:")
case 2:
unencryptedEntry[field] = inputHidden("TOTP secret:")
case 3:
unencryptedEntry[field] = input("URL:")
case 3: // edit notes fields
case 4: // edit notes fields
// store note and non-note data separately
nonNoteData := unencryptedEntry[:3]
noteData := unencryptedEntry[3:]
nonNoteData := unencryptedEntry[:4]
noteData := unencryptedEntry[4:]
// edit the note
editedNote, noteEdited := editNote(noteData)