mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Show name of journal when creating a password/encrypting (#1478)
* Show name of journal when creating password
This commit is contained in:
parent
55b72a49b6
commit
86c8466ae4
1 changed files with 4 additions and 3 deletions
|
@ -5,9 +5,10 @@ import getpass
|
|||
import sys
|
||||
|
||||
|
||||
def create_password(
|
||||
journal_name: str, prompt: str = "Enter password for new journal: "
|
||||
) -> str:
|
||||
def create_password(journal_name: str) -> str:
|
||||
|
||||
prompt = f"Enter password for journal '{journal_name}': "
|
||||
|
||||
while True:
|
||||
pw = getpass.getpass(prompt)
|
||||
if not pw:
|
||||
|
|
Loading…
Add table
Reference in a new issue