It looks like you're new here. If you want to get involved, click one of these buttons!
Using version 1.4.2. Been a while since I've done any PHP stuff and used FuelCMS and CodeIgniter so I may be trying something I shouldn't. Here goes.
Ion_Auth creates a table named 'users' which conflicts with the fuel_users module so I created a simple module name 'Members_module' but referenced the 'users' table.
ISSUE 1: Ion_Auth has an 'active' field in the 'users' table but it uses 1/0 instead of 'yes','no'. Is there a way to defeat the automatic addition to the query that looks for active = 'yes'? I tried find_one_by_id($user_id) and just the basic find_one() with a 'where' query but it still adds the check for active = 'yes'.
As a temporary measure (I hate doing this) I went into the ion_auth_model and changed all the 1's and 0's for the active field to 'yes','no' and changed the 'users' table to be an 'enum' table with those values.
ISSUE 2(re: issue 1): Now, when I run find_one_by_id($user_id) it returns an empty array. I used a debug_query and copied and the resulting query and ran it directly against the database and it returns a record.
QUESTION: When this runs in fuel, do you think it's looking in the fuel_users table? Why would it return an empty recordset even though the query works when run directly?