Skip to content

Commit

Permalink
dont echo passwords when creating config
Browse files Browse the repository at this point in the history
  • Loading branch information
DoWhileGeek committed Aug 16, 2015
1 parent f1a540d commit 1ccf804
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/slice
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import json
import os
import sys
import time
import getpass

import configargparse
from appdirs import user_config_dir
Expand Down Expand Up @@ -109,7 +110,7 @@ def save_or_load_credentials():
while True:
try:
username = input("username: ")
password = input("password: ")
password = getpass.getpass("password: ")
except KeyboardInterrupt:
print()
sys.exit(1)
Expand Down

0 comments on commit 1ccf804

Please sign in to comment.