mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-07 00:36:13 +02:00
Deprecate config.password
This commit is contained in:
parent
044accff6d
commit
9651adcdd0
2 changed files with 1 additions and 28 deletions
|
@ -67,15 +67,7 @@ class EncryptedJournal(Journal.Journal):
|
|||
key = make_key(password)
|
||||
return _decrypt(journal_encrypted, key)
|
||||
|
||||
text = None
|
||||
|
||||
if 'password' in self.config:
|
||||
text = validate_password(self.config['password'])
|
||||
|
||||
if text is None:
|
||||
text = util.get_password(keychain=self.name, validator=validate_password)
|
||||
|
||||
return text
|
||||
return util.get_password(keychain=self.name, validator=validate_password)
|
||||
|
||||
def _store(self, filename, text):
|
||||
key = make_key(self.config['password'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue