Skip to content
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

Replacing unsupported/dropped mysql function PASSWORD() #204

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pkamps
Copy link
Member

@pkamps pkamps commented May 12, 2021

The mysql PASSWORD() function is no longer supported in mysql 8.x

There have been already pull requests to change the password hash in the DB. But the code in kernel/classes/datatypes/ezuser/eztextfileuser.php is an oversight. This pull request is hashing the password with the PHP function password_hash() and stores it together with the password_hash_type 7 in the DB.

The password_hash_type is the correct type for password hashes generated with the PHP function.

@peterkeung
Copy link
Member

When is that file/class used? In other words, how do we test this?

@pkamps
Copy link
Member Author

pkamps commented May 12, 2021

It came up running the unit tests. I don't know how to use that class - I'm guessing you can have user info (passwords) in text files on the filesystem (instead of having that info in the db).

@pkamps
Copy link
Member Author

pkamps commented Jun 1, 2021

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