UI Improvements
This commit is contained in:
@@ -118,11 +118,12 @@ def getAPI(USERNAME, SERVICE_NAME):
|
||||
raise ValueError("Failed to retrieve API key after 3 incorrect attempts.")
|
||||
else:
|
||||
logging.warning(f"No API key found for user '{USERNAME}' in service '{SERVICE_NAME}'.")
|
||||
api_key = getpass(f"🔑 No API key found. Please enter your API key for '{SERVICE_NAME}': ").strip()
|
||||
api_key = getpass(f"🗝️ No API key found. Please enter your API key for '{SERVICE_NAME}': ").strip()
|
||||
print("Please exit and relaunch program after saving your credential to avoid errors")
|
||||
|
||||
while True:
|
||||
password = getpass("🔐 Create a password to encrypt your API key: ")
|
||||
confirm_password = getpass("🔐 Confirm your password: ")
|
||||
password = getpass("🔓 Create a password to encrypt your API key: ")
|
||||
confirm_password = getpass("🔒 Confirm your password: ")
|
||||
|
||||
if password != confirm_password:
|
||||
logging.warning("❌ Passwords do not match. Try again.")
|
||||
|
||||
Reference in New Issue
Block a user