Welcome Guest, Not a member yet? Register   Sign In
The Easiest Authentication Library for CodeIgniter just got easier.
#39

[eluser]Bj_o_rn[/eluser]
[quote author="XonnoX" date="1242378686"]But however, I am having a bit of issue trying to get the user_group() function to work for me.[/quote]

I had the same problem, I think I found the error though. In file system/application/libraries/Auth.php on line 145 you'll find:
Code:
'group' => $row['group_id'],
Which I changed to (added "_id"):
Code:
'group_id' => $row['group_id'],

The user_group() function checks for a variable called group_id but it was initiated as group. I'm not sure which one of the two is wrong though but group_id made more sense since that is the name used for the field in the database.


Messages In This Thread
The Easiest Authentication Library for CodeIgniter just got easier. - by El Forum - 05-16-2009, 10:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB