Added getpass
This commit is contained in:
@@ -10,6 +10,7 @@ import requests
|
|||||||
import json
|
import json
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
from getpass import getpass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
@@ -1218,9 +1219,9 @@ def prompt_credentials(config):
|
|||||||
print(f"{Colors.LIGHT_GREEN}DO NOT SHARE YOUR CREDENTIALS WITH ANYONE.{Colors.END}")
|
print(f"{Colors.LIGHT_GREEN}DO NOT SHARE YOUR CREDENTIALS WITH ANYONE.{Colors.END}")
|
||||||
|
|
||||||
config["username"] = input("Enter your api.switchvoxuc.com username: ")
|
config["username"] = input("Enter your api.switchvoxuc.com username: ")
|
||||||
config["password"] = input("Enter your api.switchvoxuc.com password: ")
|
config["password"] = getpass("Enter your api.switchvoxuc.com password: ")
|
||||||
config["provider_username"] = input("Enter your api.nwsip.com username: ")
|
config["provider_username"] = input("Enter your api.nwsip.com username: ")
|
||||||
config["provider_password"] = input("Enter your api.nwsip.com password: ")
|
config["provider_password"] = getpass("Enter your api.nwsip.com password: ")
|
||||||
|
|
||||||
print(f"{Colors.LIGHT_GREEN}Configure additoinal tenant credentials.{Colors.END}")
|
print(f"{Colors.LIGHT_GREEN}Configure additoinal tenant credentials.{Colors.END}")
|
||||||
tenant = input("Enter your tenant name or enter for None: ") or None
|
tenant = input("Enter your tenant name or enter for None: ") or None
|
||||||
@@ -1230,13 +1231,13 @@ def prompt_credentials(config):
|
|||||||
config["tenant"][tenant]["username"] = input(
|
config["tenant"][tenant]["username"] = input(
|
||||||
f"Enter your {Colors.LIGHT_CYAN}{tenant}{Colors.END} api.switchvoxuc.com username: "
|
f"Enter your {Colors.LIGHT_CYAN}{tenant}{Colors.END} api.switchvoxuc.com username: "
|
||||||
)
|
)
|
||||||
config["tenant"][tenant]["password"] = input(
|
config["tenant"][tenant]["password"] = getpass(
|
||||||
f"Enter your {Colors.LIGHT_CYAN}{tenant}{Colors.END} api.switchvoxuc.com password: "
|
f"Enter your {Colors.LIGHT_CYAN}{tenant}{Colors.END} api.switchvoxuc.com password: "
|
||||||
)
|
)
|
||||||
config["tenant"][tenant]["provider_username"] = input(
|
config["tenant"][tenant]["provider_username"] = input(
|
||||||
f"Enter your {Colors.LIGHT_CYAN}{tenant}{Colors.END} api.nwsip.com username: "
|
f"Enter your {Colors.LIGHT_CYAN}{tenant}{Colors.END} api.nwsip.com username: "
|
||||||
)
|
)
|
||||||
config["tenant"][tenant]["provider_password"] = input(
|
config["tenant"][tenant]["provider_password"] = getpass(
|
||||||
f"Enter your {Colors.LIGHT_CYAN}{tenant}{Colors.END} api.nwsip.com password: "
|
f"Enter your {Colors.LIGHT_CYAN}{tenant}{Colors.END} api.nwsip.com password: "
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user