mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[mongo setup] utilize getpass (#2593)
This commit is contained in:
parent
6c296a9a17
commit
874204bf18
@ -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: ")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user