Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Don't write directly to the database. It's not going to update the user object in memory. The users session data also won't have the usergroups. To add usergroups you need to use APIs. The below for example is how CB Auto Actions does it.As to "user store override" -- I am directly writing to the #__user_usergroup_map table during signup, associating $user->id (from the $user object passed to the event). There are no other CB-related objects involved unless they somehow override JFactory::getDbo() in order to accomplish it.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.