Deprecate config.password

This commit is contained in:
Manuel Ebert 2014-07-27 13:02:35 +09:00
parent 044accff6d
commit 9651adcdd0
2 changed files with 1 additions and 28 deletions

View file

@ -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'])