Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Password Manager #198

Merged
merged 16 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
95 changes: 0 additions & 95 deletions nitrokeyapp/add_secret_dialog.py

This file was deleted.

6 changes: 3 additions & 3 deletions nitrokeyapp/device_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def uuid_prefix(self) -> str:
The prefix of the UUID that is constant even when switching between
stable and test firmware.
"""
return str(self.uuid)[:-4]
return str(self.uuid)[:5]

def open(self) -> Nitrokey3Device:
device = Nitrokey3Device.open(self.path)
Expand All @@ -48,9 +48,9 @@ def update(
try:
Nk3Context(self.path).update(overview_tab, info_frame, image)
logger.info("Successfully updated the Nitrokey 3")
info_frame.set_text("Successfully updated the Nitrokey 3.")
info_frame.set_status("Successfully updated the Nitrokey 3.")
except Exception as e:
logger.info(f"Failed to update Nitrokey 3 {e}")
info_frame.set_text("Failed to update Nitrokey 3.")
info_frame.set_status("Failed to update Nitrokey 3.")
self.updating = False
overview_tab.update_btns_during_update(True)