Code: Select all
$avoid_w3all_password_check
https://www.axew3.com/w3/2025/06/wordpr ... code-file/
Explain: it can be seen actually, into the wp_w3all.php file, this code:
Code: Select all
// 2fa x All-In-One Security is into WP_w3all_phpbb::verify_phpbb_credentials()
# Avoid for Wordfence 2fa. Just do not replace wp_check_password, let Wordfence 2fa auth do his way
if(isset($_POST['action']) && $_POST['action'] == 'wordfence_ls_authenticate')
{ # do nothing
} else {
# replace WP default wp_check_password function that include the phpBB session setup for the user, if the pass match
if ( ! function_exists( 'wp_check_password' ) && ! defined("WPW3ALL_NOT_ULINKED") ) :
function wp_check_password($password, $hash, $user_id = '') {
// wp do not allow char \ on password: ... ...
... ...
Code: Select all
if( $avoid_w3all_password_check > 0 OR isset($_POST['action']) && $_POST['action'] == 'wordfence_ls_authenticate')
{ # do nothing
} else {
Like so in this example, instead of this:
viewtopic.php?p=7008#p7008
we can resolve like this:
Code: Select all
# Simple membership plugin login vars fix
if( isset($_POST['swpm_user_name']) && isset($_POST['swpm_password']) && isset($_POST['swpm-login']) ){
#if(! defined("WPW3ALL_NOT_ULINKED")) define("WPW3ALL_NOT_ULINKED",true);
$avoid_w3all_password_check = 1;
}