updated function name

This commit is contained in:
crp3844
2022-09-07 15:25:52 -04:00
parent 892e8548b9
commit ed5ba18ca7

View File

@@ -243,7 +243,7 @@ def decrypt_v1(client, array):
def does_file_exist(filepath):
return os.path.exists(filepath)
def ask_for_account_details():
def new_account_details():
print("Requesting account details to add to config.")
account_email_address = input("Please enter Bitwarden account email address: ")
account_api_client_id = input("Please enter Bitwarden account API client ID: ")
@@ -368,7 +368,7 @@ if __name__ == "__main__":
while True:
user_input = input("n/q> ")
if user_input.casefold() == "n":
account_details = ask_for_account_details()
account_details = new_account_details()
write_config_file(account_details, secrets_config_file)
break
elif user_input.casefold() == "q":
@@ -398,7 +398,7 @@ if __name__ == "__main__":
break
# Createing a new account
elif user_input.casefold() == "n":
account_details = ask_for_account_details()
account_details = new_account_details()
accounts.update(account_details)
write_config_file(accounts, secrets_config_file)
break