machuga/codeigniter-authority-authorization — Issue #2: Can't get authentication to work
Author: raoulvanhaaften
Created: 2011-12-12 06:32:19+00:00
State: open

I didn't now where to place this, at the sparks website or here, so i try both.

In order to use this i have to use your Authentic and PHPActiveRecord lib right?

I added all of the files from these three libs manually to a clean codeigniter install, but i can't seem to get the Authentic working. I think it's because i'm not sure how my database has to look like.

I made a table called 'users' with columns 'id', 'username', 'password', 'email' and 'salt'.

Calling the next code in my controller keeps giving me te error 'invalid username or password':

$this->authentic->login('testuser', 'test');
var_dump($this->authentic->get_errors());

I hoped this lib would save me some time by not having to program an ACL by myself, but it seems like I have to program it myself anyway if this isn't going to work very soon now. Horrible deadlines!

Any help?

Thanks in advance!