pengkong / A3M-for-CodeIgniter-2.0

A3M Peanutbutter - For CodeIgniter 2.0
Other
109 stars 84 forks source link

FB/Gmail username missing #31

Closed mwo44 closed 11 years ago

mwo44 commented 11 years ago

Hi, I've noticed that when I log in with the FB or Gmail account I get no username.

The fields in /account/account_settings are partially or not at all filled in (only name/surname when logged in with Gmail).

There's an error: Trying to get property of non-object calling to

$account->username variable

When I try debugging it's empty

var_dump($account);
array(0) { } 

The controller running in the background is modified index function:

function index()
    {
        maintain_ssl();

        if ($this->authentication->is_signed_in())
        {
            $data['account'] = $this->account_model->get_by_id($this->session->userdata('account_id'));
            $this->load->view('welcome', isset($data) ? $data : NULL);
        } else {
            $this->load->view('home', isset($data) ? $data : NULL);
        }
    }

I don't see this problem when trying to log in with native username and password. Thanks in advance

mwo44 commented 11 years ago

Issue resolved - I cleared the test username in the database and created it again.