Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non "id" error #1

Closed
brianjolney opened this issue Mar 27, 2012 · 1 comment
Closed

Non "id" error #1

brianjolney opened this issue Mar 27, 2012 · 1 comment

Comments

@brianjolney
Copy link

My user table uses account_id as the field name instead of id, and I'm seeing a few errors.

If I understand this correctly, the model seems to be hard coded to "id" instead of using the config value:

Line 223 of /models/ci_authentication_model.php
$this->db->where('id', $post['id']);

Also on line 397 of /libraries/ci_authentication.php
'id' => $r->id,

Am I doing something incorrectly here?

@mikedfunk
Copy link
Owner

You're right, I missed that one. I have fixed this in 1.3.3. For now role is still hardcoded as 'id' but I'll abstract that out if someone needs it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants