mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
[mongo setup] utilize getpass (#2593)
This commit is contained in:
@@ -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: ")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user