mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-09 09:06:12 +02:00
Add password confirmation dialog
This commit is contained in:
parent
70c946bc13
commit
8eb185f8a2
6 changed files with 66 additions and 25 deletions
|
@ -38,7 +38,7 @@ class EncryptedJournal(Journal.Journal):
|
|||
filename = filename or self.config['journal']
|
||||
|
||||
if not os.path.exists(filename):
|
||||
password = util.getpass("Enter password for new journal: ")
|
||||
password = util.create_password()
|
||||
if password:
|
||||
if util.yesno("Do you want to store the password in your keychain?", default=True):
|
||||
util.set_keychain(self.name, password)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue