Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show name of journal when creating a password/encrypting #1478

Merged
merged 10 commits into from
May 21, 2022
7 changes: 4 additions & 3 deletions jrnl/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
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:
Expand Down