Refactor get_existing_authentication to return a list of all row found

Previously we were returning only the first row found. We need to be
able to see if there is a difference in the existing passwords.
This commit is contained in:
Laurent Indermuehle 2024-06-06 19:15:28 +02:00
parent c7218c71aa
commit 3f4af18cb9
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
2 changed files with 37 additions and 18 deletions

View file

@ -633,7 +633,7 @@ class MySQL_Info(object):
authentications = get_existing_authentication(self.cursor, user, host)
if authentications:
output_dict.update(authentications)
output_dict.update(authentications[0])
# TODO password_option
# TODO lock_option