Hello!
I'm wondering how I would go about to use Auth together with a User model. From what I have read here on the forums you shouldn't use Auth to create/update Users, this should be done from the model. I'm just wondering how to use Auth together with my own User model when it comes to the hashing function etc. Early attempts to create users with my User model just led to me not being able to log in. I have set up a standard users table from the template @ http://fuelphp.com/docs/packages/auth/simpleauth/login.html.
I'm not really sure as to how Auth works behind the scenes, as it seems to update the login_hash automatically among other things. Could anyone give me a simple example how I would go about to create a user using the user model so that the user will be able to log in using SimpleAuths login function?
As it is now I am forced to edit the core Auth driver to add specific data due to relationships in the database and it is ugly and wrong, but it works for now at least, enabling me to move on with other parts of the project but I really dont like it.
Thankful for any help!
on a side note, you should never 'edit' any core module.
if there's really something you need a core module to do differently you would create a class in app/classes and
overload a function of the core class.
otherwise you'd have a hard time keeping your core library up to date.