WordPress / two-factor

Two-Factor Authentication for WordPress.
https://wordpress.org/plugins/two-factor/
GNU General Public License v2.0
719 stars 150 forks source link

Link to Application Passwords #300

Open kasparsd opened 5 years ago

kasparsd commented 5 years ago

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.

joostdekeijzer commented 5 months 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' );
} );