Skip to content

only run password-checks when the appropriate columns exist #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 28, 2020

Conversation

rndmh3ro
Copy link
Member

No description provided.

Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rndmh3ro thank you for the addition, once signed off, we can merge the PR

Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
@rndmh3ro
Copy link
Member Author

rndmh3ro commented Aug 20, 2020

The previous implementation didn't work, because if there is a password-column in the user-table, it is totally possible that there is a authentication_string column, too. MySQL decides when to use which column based on the auth-plugin used.

So now I changed the PR and just check if both columns are empty. If one of them is filled, it means there's a password used. If none is used, it's an empty password.

@chris-rock, can you check again, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants