Skip to content

Replacing unsupported/dropped mysql function PASSWORD()#204

Open
pkamps wants to merge 1 commit intomasterfrom
mysql_8_support
Open

Replacing unsupported/dropped mysql function PASSWORD()#204
pkamps wants to merge 1 commit intomasterfrom
mysql_8_support

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