Open kasparsd opened 5 years ago
With Application Passwords in WP main code, the 2factor plugin effectively breaks that without the suggested hook in the Application Password plugin description.
Shouldn't this plugin just include that code so it just works?
I can create a PR for eg.
add_filter( 'application_password_did_authenticate', function() {
add_filter( 'two_factor_user_api_login_enable', '__return_true' );
} );
Users might want to disable the two factor authentication for certain API requests so we should document the
two_factor_user_api_login_enable
filter and how to use it together with Application Passwords plugin.