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.

Ion Auth - Lightweight Auth System based on Redux Auth 2

February 10, 2010 7:00pm

Subscribe [287]
  • #1306 / Jan 10, 2013 1:11pm

    paul-s-

    2 posts

    Got to love Ion_Auth which is now securing the admin area to a new website I am doing - thanks Ben.

    I’ve implemented the Remember me functionality and have a question over cookie security. 

    I’ve noticed that I can easily edit the cookie expiry date for the cookies used for the remember me functionality so I am wondering if I am doing something wrong?

    Is this normal or should I have set something in the config that would add an expiry date of some kind or other into the randomised code or set the code expiry time in the users table?

    Any thoughts would be most welcome.

     

  • #1307 / Jan 19, 2013 12:44am

    jmadsen

    438 posts

    I wrote up a little explanation of using hooks with Ion Auth that I hope will help folks out

    http://www.codebyjeff.com/blog/2013/01/using-hooks-with-ion_auth

  • #1308 / Jan 30, 2013 8:00am

    anhsk.ohbo

    4 posts

    hey all!
    I’m doing working with my project using CI and ion_auth. Now, I want create a user_profile table container infomation of the user. And call to user simple like : $this->ion_auth->user();
    But I have not found a way to solve this problem. anyone can give me how to solve?
    Sorry my english is a little poorly :D

  • #1309 / Feb 02, 2013 9:54am

    visualight

    1 posts

    Hello,

    I have problems with ion auth.

    Forgot_password, change password and reset password not send the new password by email.
    The template : new_password.tpl.php is not used.

    How i can implement or activate this functionality ?

    Also i have a problem to get ip adresses : The Ip will normally (example : 192.168.0.19) and the stored IP is like : U�w or \0\0. this is really strange.

    Thanks a lot

  • #1310 / Feb 09, 2013 2:39am

    Red

    7 posts

    i have an error when im using drop down menu same like codeigniter user_guide.. when i used ion auth only the title show on my menu, no dropdown menu and item show on my view.. it only happen when i used ion auth.. hope any one can help or alternative drop down menu like user_guide in codeigniter..

  • #1311 / Mar 04, 2013 3:45pm

    Marvix

    4 posts

    Hello,

    Am trying to reach register page, and it seems it not there ;(

    Can I remove the admin authentication from create_user function to make open for public, its secure ?


    THX

  • #1312 / Apr 06, 2013 9:15pm

    futo

    6 posts

    Hey guys,
    Has anyone succeeded to implement captcha into ion_auth?

    I will be very grateful if someone would give me some tips in how to do that

    Thanks

    yes - right now, if not anybody else already has written about it before (prop) ...

    ion auth with Googles reCAPTCHA ... went smooth ...

  • #1313 / Apr 12, 2013 6:12pm

    chiqui3d

    5 posts

    thank you very much

    can work with DataMapper?

    thanks

  • #1314 / Jun 27, 2013 8:56am

    amnesia

    1 posts

    Hi ben, I just put pull issue in github repo’s.

    I don’t know about this if, i was remove additional data in register method,

    $username = 'benedmunds';
    $password = '12345678';
    $email = '[email protected]';
      
      $group = array('1'); // Sets user to admin. No need for array('1', '2') as user is always set to member by default
    
      $this->ion_auth->register($username, $password, $email, $group)

    why the user set to ‘default group’ and not in ‘admin group’, any one result same as me?

    thx.

  • #1315 / Jul 09, 2013 1:46pm

    BrokenLegGuy

    70 posts

    I’ve tried searching for this issue but I don’t exactly what I to type in the get what I’m looking for.

    Issue: I use config/form_validation.php. How do I reach settings in config/ion_auth.php? I’m trying to use the password min/max length settings but it errors out every time I try.

    To get around this I have just typed in the min/max for the password. Any ideas?

    array(
      'field' => "password",
      'label' => "Password",
      'rules' => 'min_length[7]|max_length[20]|matches[password_confirm]'
    ),
  • #1316 / Aug 16, 2013 9:29am

    rashgang

    2 posts

    Hi ben,

    I have downloaded the latest version of ion auth and using it for my application. I have a small doubt regardign ion auth. it is very easy to use in my application.


    https://github.com/benedmunds/CodeIgniter-Ion-Auth

    Could you please give me suggestion that i have to create site admin panel using ion auth.

    my folder structure will be

    controller
    admin
      dashboard.php
      pages.php
      ........ etc

    I am going to create many controller like this using ion auth. is it secure to check whether the user is admin or member group like this in constructor of every controller or is it wrong to check like this and also can we rename auth to admin?

    if (!$this->ion_auth->is_admin()) {

    redirect(‘home’);
    }

    Please advise on this

  • #1317 / Aug 17, 2013 1:14am

    rashgang

    2 posts

    Hi ben,

    I have downloaded the latest version of ion auth and using it for my application. I have a small doubt regardign ion auth. it is very easy to use in my application.


    https://github.com/benedmunds/CodeIgniter-Ion-Auth

    Could you please give me suggestion that i have to create site admin panel using ion auth.

    my folder structure will be

    controller
    admin
      dashboard.php
      pages.php
      ........ etc

    I am going to create many controller like this using ion auth. is it secure to check whether the user is admin or member group like this in constructor of every controller or is it wrong to check like this and also can we rename auth to admin?

    if (!$this->ion_auth->is_admin()) {

    redirect(‘home’);
    }

    Please advise on this

  • #1318 / Aug 26, 2013 6:22pm

    centrion

    2 posts

    Hi ben,

    I have downloaded the latest version of ion auth and using it for my application. I have a small doubt regardign ion auth. it is very easy to use in my application.


    https://github.com/benedmunds/CodeIgniter-Ion-Auth

    Could you please give me suggestion that i have to create site admin panel using ion auth.

    my folder structure will be

    controller
    admin
      dashboard.php
      pages.php
      ........ etc

    I am going to create many controller like this using ion auth. is it secure to check whether the user is admin or member group like this in constructor of every controller or is it wrong to check like this and also can we rename auth to admin?

    if (!$this->ion_auth->is_admin()) {

    redirect(‘home’);
    }

    Please advise on this

    You can create MY_controller in core folder and extend CI_Controller, in that file i usually create 3 class. MY_controller, Admin_controller and Public_controller. example:

    <?php defined('BASEPATH') OR exit('No direct script access.');
    
    class MY_Controller extends CI_Controller {
    
        public $data = array();
        public function __construct()
        {
            // do some stuff here that affects all controllers
        }
    
    }
    
    class Public_Controller extends MY_Controller {
    
        public function __construct()
        {
            parent::__construct();
            $this->data['meta_title'] = "My Awesome Website";
        }
    
    }
    
    class Admin_Controller extends MY_Controller {
    
        public function __construct()
        {
            parent::__construct();
            $this->data['meta_title'] = "Admin Panel My Awesome Website";
    
            $this->load->library('ion_auth');
            // Check if admin is logged in
            if (!$this->ion_auth->is_admin()) {
    
                redirect(‘home’);
                }
        }
    
    }

    Just extend Admin_Controller class for every admin controller you will create, instead of type/copy paste that code in every admin controller.. sorry for my bad english, cheers 😊

  • #1319 / Feb 18, 2014 10:56am

    EyeAmN8

    18 posts

    Awesome work Man!!!!!

    I just tried it with the latest version of the two “ION and hmvc”, and had to change a few things.

    Did not use

    $this->ci->load ...

    Other than that it worked perfectly. Thanks again for the post

  • #1320 / Mar 17, 2014 10:05am

    Kenqr

    3 posts

    Hello.
    I’m working on a website using CI and ion auth, on yahoo webhosting.
    While ion auth works fine on my computer, it stopped working on yahoo.
    auth/index displays a blank page. (There are probably some php errors, but yahoo webhosting does not display them.)
    I have created a page to create new users, which works on my computer.
    When I use the same page to create user on yahoo, the user is created , but the password field in database is set to 0. Therefore I can’t login with the created user.
    Looks like this in phpmyadmin: http://i.imgur.com/2hJvbHn.png
    My guess is this may be related with bcrypt and php version.
    My computer runs php 5.4.19, while yahoo runs php 5.3.6.
    If php version is the problem, is there any way to work around this?

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

ExpressionEngine News!

#eecms, #events, #releases