mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-12 17:38:32 +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))
|
||||
|
||||
attempts += 1
|
||||
return attempts, print_msg(
|
||||
Message(MsgText.Password, MsgStyle.PROMPT),
|
||||
get_input=True,
|
||||
hide_input=True,
|
||||
) or ""
|
||||
return (
|
||||
attempts,
|
||||
print_msg(
|
||||
Message(MsgText.Password, MsgStyle.PROMPT),
|
||||
get_input=True,
|
||||
hide_input=True,
|
||||
)
|
||||
or "",
|
||||
)
|
||||
|
||||
|
||||
def yesno(prompt: Message, default: bool = True) -> bool:
|
||||
|
|
Loading…
Add table
Reference in a new issue