• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About flexi-auth library

#1
Sad 
Hi all,
I have just learned about flexi-auth library to creat very very simple log in and register form; however, when I called login function or insert_user function from flexi-auth, they both return false, I don't know how to fix. In particular, here is my code:

PHP Code:
public function login(){
        
$username=$this->input->post('username');
        
$pass=$this->input->post('password');
        
$remember=$this->input->post('remember');
        
$this->flexi_auth->login($username,$pass,$remember);} 

PHP Code:
public function register(){
        
$email=$this->input->post('email');
        
$username=$this->input->post('username');
        
$password=$this->input->post('password');
        
$id=$this->flexi_auth->insert_user($email,$username,$password);
 
               var_dump($id);// it return false 
        
echo "Your ID number is ".$id;
    } 
Please help me to fix it, or if you used this library before, can you show me a simple demo about log in and register which use flexi -auth library.
Thank for your help!
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.