Skip to content

Commit

Permalink
Merge pull request #3 from filippog/prompt-links
Browse files Browse the repository at this point in the history
Include todoist links in prompt
  • Loading branch information
joanbm authored Jan 1, 2024
2 parents 0b7bc4f + da2b785 commit 2fc259e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions full_offline_backup_for_todoist/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ def get_credential(opt_file: Optional[str], opt_direct: Optional[str],
return getpass.getpass(prompt + ": ") if sensitive else input(prompt + ": ")

token = get_credential(args.token_file, args.token, "TODOIST_TOKEN",
"Todoist token (from Settings -> Integrations)", sensitive=True)
email = get_credential(None, args.email, "TODOIST_EMAIL", "Todoist email",
"Todoist token (from https://todoist.com/app/settings/integrations/developer)", sensitive=True)
email = get_credential(None, args.email, "TODOIST_EMAIL", "Todoist email https://todoist.com/app/settings/account",
sensitive=False) if args.with_attachments else None
password = get_credential(None, args.password, "TODOIST_PASSWORD", "Todoist password",
password = get_credential(None, args.password, "TODOIST_PASSWORD", "Todoist password (can be empty)",
sensitive=True) if args.with_attachments else None
return TodoistAuth(token, email, password)

Expand Down

0 comments on commit 2fc259e

Please sign in to comment.