Welcome Guest, Not a member yet? Register   Sign In
ion_auth login() does not return TRUE or FALSE.
#3

[eluser]dottedquad[/eluser]
For some strange reason the code is now working as expected after I changed my code. Perhaps my Hosting provider was slow with updating my files. Sometimes there is a delay after I upload a php or etc. file via ftp.

I changed:
Code:
$loginCheck = $this->ion_auth->login($identity, $password, $remember);
  
   $data['check'] = $loginCheck;
  
   $this->load->view('check', $data);

to:
Code:
if($this->ion_auth->login($identity, $password, $remember))
   {
    $messages = $this->ion_auth->messages();
    echo $messages;
   }
   else
   {
    $errors = $this->ion_auth->errors();
    echo $errors;
   }



Messages In This Thread
ion_auth login() does not return TRUE or FALSE. - by El Forum - 02-29-2012, 07:17 PM
ion_auth login() does not return TRUE or FALSE. - by El Forum - 02-29-2012, 09:10 PM
ion_auth login() does not return TRUE or FALSE. - by El Forum - 02-29-2012, 09:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB