mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-30 22:46: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
|
@ -78,7 +78,7 @@ def encrypt(journal, filename=None):
|
|||
""" Encrypt into new file. If filename is not set, we encrypt the journal file itself. """
|
||||
from . import EncryptedJournal
|
||||
|
||||
journal.config['password'] = util.getpass("Enter new password: ")
|
||||
journal.config['password'] = util.create_password()
|
||||
journal.config['encrypt'] = True
|
||||
|
||||
new_journal = EncryptedJournal.EncryptedJournal(None, **journal.config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue