open file
search for line:
Code: Select all
if ( ! $user_id && $phpbb_user[0]->user_type != 1 ) {
Code: Select all
$wp_urole = implode(', ', $user_info->roles);
if( $phpbb_user[0]->user_type == 1 && !empty($user_info->wp_capabilities) ){ // activate this deactivated phpBB user
$user_email_hash = self::w3all_phpbb_email_hash($user_info->user_email);
$w3phpbb_conn->query("UPDATE ".$phpbb_config_file["table_prefix"]."users SET user_type = '0' WHERE user_email_hash = '$user_email_hash'");
}
I say it is not a complete solution, in the sense that the user will not be able to login phpBB side, until will not login almost one time before, into WP.
The user need to login almost one time WP to be activated. This will be maybe what an user will d0 99% of cases. In the other case, when will try to login phpBB and will get no result, may will try to login WP side ... maybe
So we can say it is acceptable, and very ok, but not completely ok.
Let know