Skip to content

Roots/Bedrock compatibility #22

@quentint

Description

@quentint

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 breaks bdvs-password-reset. See this implementation: https://github.com/roots/wp-password-bcrypt/blob/5b8542e71578f4540b8dd69c39ae9f156d29c200/wp-password-bcrypt.php#L86

I fixed/hacked this with these lines (because I couldn't find anything better for the moment):

<?php
// my-theme/functions.php

// Hack to fix "bdvs-password-reset" plugin on Roots/Bedrock
add_action('application_password_is_api_request', function(bool $isRest) {
    return false;
}, 10, 2);

I hope this helps and could be fixed 😉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions