codeigniter - [PHP]User complaining about logging in to prexisting accounts after facebook signup -


today, informed when user signed on website facebook redirected user's account (if account exists redirected login ) specific user account didn't exist should have spit out error below. first user complain of this. login script simple , straight forward. see issues logic of code or facebook issue? i'm pretty stumped on 1 seems working other users.

any appreciated.

thank you. language php , code igniter

here code..

 public function signin_fb_check(){     $this->layout = false;     $this->template = false;      $check_exists_user = $this->user->row(array('conditions' => array_filter(array(                            'email' => $this->ahrform->get('email')         ))));      if(count($check_exists_user)>0){          $id = $check_exists_user->id;         $userid = $check_exists_user->id;         $this->ahruser->user('login', $userid);         $session_token = uniqid();         $uinfo = array('token' => $session_token, 'userid' => $userid, 'user' => $check_exists_user);         $this->ahrsession->set('logininfofront', $uinfo);          //if($check_exists_user->project_status ==2){             $redirect_to = site_url('users/campaign/dashboard');         //}else{           //  $redirect_to = site_url('users/campaign/add');          if($check_exists_user->stripe_active == 0){                 $this->email_template->send_mail('activation-request',$id);             }         exit(json_encode(array('status' => true, 'msg' => 'account detected', 'redirect_to' => $redirect_to)));     }else{         exit(json_encode(array('status' => false, 'msg' => 'sorry, no account found.')));     } }  public function login(){     $this->title_for_layout = 'login'; } 

that code isnt helpful @ in understanding whats going on. how doing echo of current user logged in , have 2 facebook accounts on you, first login first facebook account, , echo see if logged in logout of facebook account app, echo again see if logged in, try same thing other account. chances logout session isnt working correctly. i've had same issue before. if try , works correctly person logged site using facebook had account logged computer.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -