Re: Ultimate Members - Users Awaiting E-mail Confirmation can login
Posted: Tue Mar 30, 2021 11:41 pm
So, this way can fix for any plugin and logins flows, just changing very few things (and this can be leaved into code by default):
open wp_w3all.php
where these lines:
just after, add the follow:
If the user should also autologin, a little code more need be added instead
earlier into function w3all_add_phpbb_user() to grab sent vars, and check against something like:
Activate only the option:
Add users in phpBB only after first successful login in WordPress
and disable the "add user as deactivated", into the integration plugin admin
i can produce also this little part of code if it is required, i will do (think) tomorrow adding a reply with all the complete procedure/code for Ultimate Member plugin.
I've read also other topic/question about cache plugin, i will take a look.
open wp_w3all.php
where these lines:
Code: Select all
if( $w3all_add_into_phpBB_after_confirm == 1 )
{
Code: Select all
$umeta = get_user_meta($wpu->ID);
if( isset($umeta['account_status'][0]) && $umeta['account_status'][0] != 'approved' ){
return;
}
earlier into function w3all_add_phpbb_user() to grab sent vars, and check against something like:
Code: Select all
$umeta = get_user_meta($wpu->ID);
if( isset($_GET['hash']) && isset($umeta['account_secret_hash'][0]) && $_GET['hash'] == $umeta['account_secret_hash'][0] )
{
// add the user in phpBB (if already exist the function will return, with no effect)
// login user in wp, that will setup also the phpBB session
return;
}
Add users in phpBB only after first successful login in WordPress
and disable the "add user as deactivated", into the integration plugin admin
i can produce also this little part of code if it is required, i will do (think) tomorrow adding a reply with all the complete procedure/code for Ultimate Member plugin.
I've read also other topic/question about cache plugin, i will take a look.