Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]sevengraff[/eluser]
How do I change the groups that a registered user is in? update() just takes a $data array but only updates the user table, not the users_groups table. Also, there is a get_users_groups() but no corresponding set_users_groups().
The docs list both update_user() and update() but I only see an implementation for update().

edit
Oh there is an undocument function, add_to_group( $groupid, $userid ) that will do it. Super cool, just found it in the model, gonna play around with it.


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 08-08-2012, 02:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB