ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

codeigniter-user auth library v. 1.3

August 07, 2012 3:44pm

Subscribe [3]
  • #1 / Aug 07, 2012 3:44pm

    Hey!

    Today I updated the codeigniter-user auth library. It uses Bcrypt, high level security encrypt hash function, among other facilities.
    Features includes adding users, removing users, protecting controllers and methods from not logged viewers and much more.

    You can check it out on github!
    https://github.com/waldirbertazzijr/codeigniter-user


    Best regards,
    Waldir

  • #2 / Aug 14, 2012 4:28pm

    Ch3ckM4t3r

    3 posts

    How can I do this?

    “You need the database library to use the user library. Please check your configuration.”

    I’m new to code igniter and I don’t know where to set it up.

  • #3 / Aug 14, 2012 5:24pm

    How can I do this?

    “You need the database library to use the user library. Please check your configuration.”

    I’m new to code igniter and I don’t know where to set it up.

    Hello Ch3ckM4t3r.

    First of all, I assume you have a working MySQL (or other database) installation.
    After installing codeigniter, merge the content of codeigniter-user library to your project project. If you want to see the demo, copy the controllers and views too.
    Now create a new database (or go to a existing one) and import the codeigniter-user database_schema.sql file into it. This will create the needed tables.
    After that, you must go to your application/config/database.php file and configure your connection info, like database name, username and password.
    Next, go to your application/config/config.php file and search for “encryption_key”. Now type something random into the string.

    Now, start up your browser and go to yoursite.com/index.php/login to see the demo login page.


    Hope this helps!

  • #4 / Aug 14, 2012 6:00pm

    Ch3ckM4t3r

    3 posts

    Hi, thanks for the fast reply.

    I did all, of the steps you write in your reply and checked all, (also checked the MySQL connection in other file), but still showing the same error. :/

  • #5 / Aug 14, 2012 6:40pm

    Hi, thanks for the fast reply.

    I did all, of the steps you write in your reply and checked all, (also checked the MySQL connection in other file), but still showing the same error. :/

    Sorry, I forgot one last thing. After doing everything I told you, you must configure the database library to autoload with your application.
    Go to application/config/autoload.php, look the following line:

    $autoload['libraries'] = array()

    Add the database library, like this:

    $autoload['libraries'] = array('database')

    And try again!

  • #6 / Aug 14, 2012 11:01pm

    Ch3ckM4t3r

    3 posts

    That worked, thank you very much!

  • #7 / Aug 14, 2012 11:27pm

    You are very welcome. And thanks, I’ll add this information to the README file.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases