Welcome Guest, Not a member yet? Register   Sign In
flexi auth - A user authentication library for CodeIgniter

[eluser]mautone[/eluser]
Hi there.

I've just started using Flexi auth.
I like the features very much and, decided to use it for my next big project. An ERP system for my self.

I have a big problem with the login part.
I get these warnings everytime i try to login:
Quote:A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/flexi_auth_model.php

Line Number: 1770

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/flexi_auth_model.php

Line Number: 1773

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/flexi_auth_model.php

Line Number: 1773

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/mpanel/system/core/Exceptions.php:185)

Filename: libraries/Session.php

Line Number: 675
My controller:
Code:
class Auth extends CI_Controller{
function __construct(){
  parent::__construct();
  $this->auth = new stdClass;
  
  // Load 'standard' flexi auth library by default.
  $this->load->library('flexi_auth');
}

public function index(){
  
  if($this->flexi_auth->login($this->input->post('username'), $this->input->post('password'))){
   echo "Logget ind";
  } else {
   $this->load->view('login');
  }
  
}

public function logout(){
  $this->flexi_auth->logout(TRUE);
  $this->index();
}
}

My view:
Code:
<h1>Login</h1>
&lt;?php
echo form_open('auth/index');
echo form_input('username');
echo form_input('password');
echo form_submit('submit', 'Submit');
echo form_close();

I just want to get to familiar with it before I implementing in the design.

Can anyone help me?


SOLVED.
It needs some data in certen tables.


Messages In This Thread
flexi auth - A user authentication library for CodeIgniter - by El Forum - 10-11-2013, 05:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB