Open quentint opened 5 months ago
Hello @quentint, thanks very much for raising the issue. I've never actually used Bedrock before, nor tested this plugin with it. I'd need to get some time to set up a test site using it to explore this issue and test your proposed change to accommodate it. With limited knowledge on the setup, I wouldn't want to be too quick to make the change without understanding its implications.
What may be good in the meantime is that we could update the docs to show that your suggested code may be required to use the plugin in this instance. As a side note, seems like it would be better to add this in a local custom plugin rather than the theme's functions.php file.
With limited knowledge on the setup, I wouldn't want to be too quick to make the change without understanding its implications
Same thing for me, this is why I consider my add_action
a hack. This is also why I'm afraid mentioning it in the docs might be a bad idea, for now. I'll try to find a better understanding of the issue and propose a better fix.
As a side note, seems like it would be better to add this in a local custom plugin rather than the theme's functions.php file.
Correct!
Hi, I think I discovered an incompatibility with this nice plugin and the Roots/Bedrock ecosystem.
They override the
wp_set_password
function but handle the REST and non-REST cases differently, which breaksbdvs-password-reset
. See this implementation: https://github.com/roots/wp-password-bcrypt/blob/5b8542e71578f4540b8dd69c39ae9f156d29c200/wp-password-bcrypt.php#L86I fixed/hacked this with these lines (because I couldn't find anything better for the moment):
I hope this helps and could be fixed 😉