Fix vault initialization in save_and_encrypt_seed

This commit is contained in:
thePR0M3TH3AN
2025-07-01 12:38:29 -04:00
parent 3632b1b2bd
commit 5dad9abde9
2 changed files with 37 additions and 0 deletions

View File

@@ -687,9 +687,13 @@ class PasswordManager:
password,
self.encryption_mode,
)
# Re-initialize EncryptionManager with the new key and fingerprint_dir
self.encryption_manager = EncryptionManager(key, fingerprint_dir)
# Initialize the vault now that encryption manager is available
self.vault = Vault(self.encryption_manager, fingerprint_dir)
# Store the hashed password
self.store_hashed_password(password)
logging.info("User password hashed and stored successfully.")