Add manual 2FA entry option

This commit is contained in:
thePR0M3TH3AN committed 2025-07-03 00:27:18 -04:00
1 parent 6dcfe740bb
commit de7beeaefc
4 files changed
+74 -2

No files matched your search

+5 -1
View File
@@ -591,13 +591,17 @@ def display_menu(
while True:
print("\nAdd Entry:")
print("1. Password")
print("2. Back")
print("2. 2FA (TOTP)")
print("3. Back")
sub_choice = input("Select entry type: ").strip()
password_manager.update_activity()
if sub_choice == "1":
password_manager.handle_add_password()
break
elif sub_choice == "2":
password_manager.handle_add_totp()
break
elif sub_choice == "3":
break
else:
print(colored("Invalid choice.", "red"))