[mongo setup] utilize getpass (#2593)

This commit is contained in:
zephyrkul 2019-04-21 09:04:08 -06:00 committed by palmtree5
parent 6c296a9a17
commit 874204bf18

View File

@ -1,4 +1,5 @@
import re import re
from getpass import getpass
from typing import Match, Pattern, Tuple from typing import Match, Pattern, Tuple
from urllib.parse import quote_plus from urllib.parse import quote_plus
@ -259,7 +260,7 @@ def get_config_details():
port = 0 port = 0
admin_uname = input("Enter login username: ") admin_uname = input("Enter login username: ")
admin_password = input("Enter login password: ") admin_password = getpass("Enter login password: ")
db_name = input("Enter mongodb database name: ") db_name = input("Enter mongodb database name: ")