mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-09 15:58:48 +00:00
Fix vault initialization in save_and_encrypt_seed
This commit is contained in:
@@ -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.")
|
||||
|
Reference in New Issue
Block a user