diff --git a/bitwardenBackup.py b/bitwardenBackup.py index 8ab2376..6b4a2a3 100644 --- a/bitwardenBackup.py +++ b/bitwardenBackup.py @@ -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