Hello osclass forum staff
I see in the code that it should make the b_active = 1
// activate user in case is not activated
$manager->update( array('b_active' => '1')
,array('pk_i_id' => $oscUser['pk_i_id']) );
The user is being created, but the b_active is 0 in the db
and the error is give me = The user has not been validated yet
from this code below:
if( ( $rs !== false ) && ( $rs->numRows() === 1 ) ) {
$fbUser = $rs->row();
if( count($fbUser) > 0 ) {
require_once osc_lib_path() . 'osclass/UserActions.php';
$uActions = new UserActions( false );
$logged = $uActions->bootstrap_login( $fbUser['fk_i_user_id'] );
switch( $logged ) {
case 0: osc_add_flash_error_message( __( 'The username doesn\'t exist', 'facebook' ) );
break;
case 1: osc_add_flash_error_message( __( '
The user has not been validated yet', 'facebook' ) );
break;
case 2: osc_add_flash_error_message( __( 'The user has been suspended', 'facebook' ) );
break;
}
so the user is not being able to login or access the site
Please review the live site to see
http://www.avbestdeals.comAVBestDeals