Welcome Guest, Not a member yet? Register   Sign In
flexi auth - A user authentication library for CodeIgniter

[eluser]haseydesign[/eluser]
@Mantero

I've never used CI Datamapper and the flexi auth library was never designed to work with it.
If you give it a try yourself, I and I'm sure other users, would be interested to hear your results whether successful or not.

@ReyPM

Unfortunately the library is not compatible with the CI autoload function as the global $this->auth = new stdClass; needs to be defined prior to loading the library.

To get around this, I personally define a Controller extension named MY_Controller with CI 'application/core' (See: http://ellislab.com/codeigniter/user-gui...asses.html), I then manually load the library within that one controller, which then can then be loaded by all of your other controllers - in effect acting as an autoloader.

Regarding how to get started without the demo.
First off, before you start anything, ensure you have setup you flexi auth config as you want - defining your own salt keys etc (see the manual @ http://haseydesign.com/flexi-auth/user_g...stallation)

Then create a form to register your first user - see the register_account() method defined within the demo_auth_model.php file for examples.
Users must be created using the library rather than manually entering details into the database as the users password needs to be hashed correctly.

That should give you a start on adding users to your application.


Messages In This Thread
flexi auth - A user authentication library for CodeIgniter - by El Forum - 02-20-2013, 01:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB