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.

The Easiest Authentication Library for CodeIgniter just got easier.

April 25, 2009 7:12pm

Subscribe [37]
  • #16 / May 03, 2009 2:56pm

    Adam Griffiths

    316 posts

    I found the problem. I deleted these files locally but they were still in the github repo, even after several commits. I have removed the older files from the repo.

    I removed:

    controllers/admin.php (path changed)
    views/auth/login.php (path changed)
    views/auth/logout.php (path changed)
    views/auth/reg_success.php (path changed)
    views/auth/register.php (path changed)

    all .sql files except dump.sql.

    So you can either delete the files you don’t need locally or grab them from the repo again.


    Thanks.

  • #17 / May 03, 2009 3:13pm

    spmckee

    56 posts

    Thanks Adam. I can’t seem to get the package via the “download” button on git. Do you have a direct link?

  • #18 / May 03, 2009 3:19pm

    Adam Griffiths

    316 posts

    Download ZIP

    Thanks.

  • #19 / May 03, 2009 4:19pm

    spmckee

    56 posts

    Thanks, perfect.

    One thing I noticed. Should

    $config['auth_login'] = 'admin/';
    be
    $config['auth_login'] = 'admin/dashboard/';

    ?

  • #20 / May 03, 2009 4:33pm

    Adam Griffiths

    316 posts

    Yes it should, I fixed it and it’s now in the repo.

    Thanks.

  • #21 / May 03, 2009 6:22pm

    aaroncornish

    3 posts

    Hi Adam

    This looks really good.

    However, I am very new to CI and I am having a problem.

    I have uploaded all of the files but I am getting this error.

    An Error Was Encountered
    Unable to load the requested class: auth

    Any help would be appreciated

    thanks in advance
    Aaron

  • #22 / May 03, 2009 6:34pm

    Adam Griffiths

    316 posts

    Hi Adam

    This looks really good.

    However, I am very new to CI and I am having a problem.

    I have uploaded all of the files but I am getting this error.

    An Error Was Encountered
    Unable to load the requested class: auth

    Any help would be appreciated

    thanks in advance
    Aaron

    Can you provide me with your version of CodeIgniter, version of PHP and your platform? Have you taken the files from the Github repo and copied the contents of the folders into an existing CodeIgniter application, or are you just running The Authentication Library files on their own?

    Thanks.

  • #23 / May 03, 2009 6:38pm

    aaroncornish

    3 posts

    Hi Adam

    I am running the latest version of CI and PHP version is 5.29

    I have uploaded the files into my existing install.

    Thanks for the super quick reply

    Cheers

  • #24 / May 03, 2009 6:47pm

    spmckee

    56 posts

    One more Adam:

    views->auth->pages->users->manage.php:

    <?php echo anchor("users/add", "Add User"); ?>

    Should be

    <?php echo anchor("admin/users/add", "Add User"); ?>
  • #25 / May 03, 2009 6:47pm

    aaroncornish

    3 posts

    Hey Adam

    I can’t reply to the PM as I am a new member, and the spam prevention policies wont let me.

    Might be worth emailing me?  aaron.cornish-at-mac.com

    Cheers
    Aaron

  • #26 / May 04, 2009 10:26am

    Otaku Coder

    22 posts

    Everything is working fine for me now. Thanks Adam!

  • #27 / May 14, 2009 12:05am

    shenanigans01

    36 posts

    any chance of adding salting? or is that in and i’ve missed it?

  • #28 / May 14, 2009 12:16am

    Thorpe Obazee

    1138 posts

    It’s already there:

    /** 
        * Salt the users password
        *
        * @access private
        * @param string
        */
        function _salt($str)
        {
            return sha1($this->CI->config->item('encryption_key').$str);
        } // function _salt()
  • #29 / May 14, 2009 10:21am

    nkelem

    20 posts

    Ok, Adam this is great to new people like me. Completely new. I am still going through the process of creating a forum. I like the look and functions of this CI forum. I would love to code it straight from the first line, but don’t mind a library i could look through. Any ideas?

    Thanks.

    And this Auth-library is working well for me.

    cheers

  • #30 / May 14, 2009 2:41pm

    Adam Griffiths

    316 posts

    Ok, Adam this is great to new people like me. Completely new. I am still going through the process of creating a forum. I like the look and functions of this CI forum. I would love to code it straight from the first line, but don’t mind a library i could look through. Any ideas?

    Thanks.

    And this Auth-library is working well for me.

    cheers

    Hey,

    Not sure what you mean. Do you mean a pre-built forum for CodeIgniter?

    Thanks.

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

ExpressionEngine News!

#eecms, #events, #releases