diff --git a/bitwardenBackup.py b/bitwardenBackup.py index 353558a..48dff21 100644 --- a/bitwardenBackup.py +++ b/bitwardenBackup.py @@ -220,13 +220,13 @@ def ask_for_account_details(): print("The Bitwarden account vault passwords do not match, please try again.") array = dict() - array["account_email_address"] = account_email_address + #array["account_email_address"] = account_email_address array["encrypted_account_email_address"] = encrypted_account_email_address - array["account_api_client_id"] = account_api_client_id + #array["account_api_client_id"] = account_api_client_id array["encrypted_account_api_client_id"] = encrypted_account_api_client_id - array["account_api_secret"] = account_api_secret + #array["account_api_secret"] = account_api_secret array["encrypted_account_api_secret"] = encrypted_account_api_secret - array["account_vault_password"] = account_vault_password + #array["account_vault_password"] = account_vault_password array["encrypted_account_vault_password"] = encrypted_account_vault_password return array @@ -299,10 +299,10 @@ if __name__ == "__main__": if user_input.casefold() == "n": account_details = ask_for_account_details() config = configparser.ConfigParser() - config.add_section(account_details["account_email_address"]) + config.add_section(account_details["encrypted_account_email_address"]) for key in account_details.keys(): - if not key == "account_email_address": - config.set(account_details["account_email_address"], key, account_details[key]) + if not key == "encrypted_account_email_address": + config.set(account_details["encrypted_account_email_address"], key, account_details[key]) with open(secrets_ini_file, "w") as configfile: config.write(configfile) break @@ -317,7 +317,7 @@ if __name__ == "__main__": print("Current Bitwarden accounts:") print(" ") for account in accounts: - print(account) + print(decrypt(client, account)) print(" ") print("e) Edit account") print("n) New account") @@ -330,10 +330,10 @@ if __name__ == "__main__": elif user_input.casefold() == "n": account_details = ask_for_account_details() - config.add_section(account_details["account_email_address"]) + config.add_section(account_details["encrypted_account_email_address"]) for key in account_details.keys(): - if not key == "account_email_address": - config.set(account_details["account_email_address"], key, account_details[key]) + if not key == "encrypted_account_email_address": + config.set(account_details["encrypted_account_email_address"], key, account_details[key]) with open(secrets_ini_file, "w") as configfile: config.write(configfile) break