mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-13 09:58:31 +02:00
format
This commit is contained in:
parent
3624bde2c0
commit
46a7aa0d2f
1 changed files with 9 additions and 5 deletions
|
@ -51,11 +51,15 @@ def prompt_password(attempts: int, max_attempts: int) -> tuple[int, str]:
|
||||||
print_msg(Message(MsgText.WrongPasswordTryAgain, MsgStyle.WARNING))
|
print_msg(Message(MsgText.WrongPasswordTryAgain, MsgStyle.WARNING))
|
||||||
|
|
||||||
attempts += 1
|
attempts += 1
|
||||||
return attempts, print_msg(
|
return (
|
||||||
|
attempts,
|
||||||
|
print_msg(
|
||||||
Message(MsgText.Password, MsgStyle.PROMPT),
|
Message(MsgText.Password, MsgStyle.PROMPT),
|
||||||
get_input=True,
|
get_input=True,
|
||||||
hide_input=True,
|
hide_input=True,
|
||||||
) or ""
|
)
|
||||||
|
or "",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def yesno(prompt: Message, default: bool = True) -> bool:
|
def yesno(prompt: Message, default: bool = True) -> bool:
|
||||||
|
|
Loading…
Add table
Reference in a new issue