[9.x] Improve password checks - #42248
Conversation
|
This a major breaking change and security risk. You're trying to retrieve users by their unhashed passwords, something that should be avoided at all costs. Please hash your passwords. |
|
@driesvints Sorry, maybe I didn't express myself very well. After my changes to the |
|
@driesvints Now there is a bug when only two or more keys with the substring "password" can be passed to the "attempt" method as input:
As a result of this "bug", the first record (without filters) will be retrieved from the table, and this is not good : ) |
|
@driesvints just look L108 and then L120 to understand the bug above. |
|
@korkoshko I finally see what you meant now. Sorry, misjudged this. Thanks for your PR 👍 |
It also fixes a possible collision when credentials contains only "password" values.
As a result of the code above, the first record will be retrieved from the table in the database.