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

[eluser]Adam Griffiths[/eluser]
[quote author="Bj_o_rn" date="1242508904"][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.[/quote]

Yeah this is correct. I actually fixed this in the latest Github commit but was unsure where or not the XonnoX was using that or not.


Thanks.


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



Theme © iAndrew 2016 - Forum software by © MyBB