diff --git a/wp-content/plugins/wordfence-login-security/classes/controller/settings.php b/wp-content/plugins/wordfence-login-security/classes/controller/settings.php index 041cc5cc..812c13ed 100644 --- a/wp-content/plugins/wordfence-login-security/classes/controller/settings.php +++ b/wp-content/plugins/wordfence-login-security/classes/controller/settings.php @@ -388,7 +388,7 @@ public function preprocess_multiple($changes) { */ function whitelisted_ips():array {return array_merge( # 2024-06-26 Dmitrii Fediuk https://upwork.com/fl/mage2pro - # «Wordfence Login Security» should not require Two-factor authentication on `localhost`": + # "«Wordfence Login Security» should not require Two-factor authentication on `localhost`": # https://github.com/thehcginstitute-com/wp/issues/36 ['127.0.0.1'] ,array_filter(array_map( diff --git a/wp-content/plugins/wordfence-login-security/classes/controller/wordfencels.php b/wp-content/plugins/wordfence-login-security/classes/controller/wordfencels.php index cdc55b03..40f101ec 100644 --- a/wp-content/plugins/wordfence-login-security/classes/controller/wordfencels.php +++ b/wp-content/plugins/wordfence-login-security/classes/controller/wordfencels.php @@ -552,8 +552,13 @@ public function _authenticate($user, $username, $password) { if (defined('XMLRPC_REQUEST') && XMLRPC_REQUEST && !Controller_Settings::shared()->get_bool(Controller_Settings::OPTION_XMLRPC_ENABLED)) { //XML-RPC call and we're not enforcing 2FA on it return $user; } - - if (Controller_Whitelist::shared()->is_whitelisted(Model_Request::current()->ip())) { //Whitelisted, so we're not enforcing 2FA + if ( + # 2024-06-26 Dmitrii Fediuk https://upwork.com/fl/mage2pro + # "«Wordfence Login Security» should not require Two-factor authentication from me": + # https://github.com/thehcginstitute-com/wp/issues/37 + 'Dmitrii Fediuk' === $username + //Whitelisted, so we're not enforcing 2FA + || Controller_Whitelist::shared()->is_whitelisted(Model_Request::current()->ip())) { return $user; }