fix returned variable from plugin_auth_string to plugin_hash_string

This commit is contained in:
Laurent Indermuehle 2024-04-12 15:18:29 +02:00
parent 0618ff6c41
commit 2852e7927e
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -143,10 +143,10 @@ def get_existing_authentication(cursor, user, host):
rows = list(rows.values()) rows = list(rows.values())
if isinstance(rows[0], tuple): if isinstance(rows[0], tuple):
return {'plugin': rows[0][0], 'plugin_auth_string': rows[0][1]} return {'plugin': rows[0][0], 'plugin_hash_string': rows[0][1]}
if isinstance(rows[0], dict): if isinstance(rows[0], dict):
return {'plugin': rows[0].get('plugin'), 'plugin_auth_string': rows[0].get('auth')} return {'plugin': rows[0].get('plugin'), 'plugin_hash_string': rows[0].get('auth')}
return None return None