CodeIgniter Forums
Ion Auth - Lightweight Auth System based on Redux Auth 2 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Ion Auth - Lightweight Auth System based on Redux Auth 2 (/showthread.php?tid=27435)



Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 02-02-2013

[eluser]Unknown[/eluser]
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


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 02-09-2013

[eluser]Red[/eluser]
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..


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 03-04-2013

[eluser]Marvix[/eluser]
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


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 04-06-2013

[eluser]futo[/eluser]
[quote author="maymoon" date="1328121558"]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
[/quote]

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

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


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 04-12-2013

[eluser]chiqui3d[/eluser]
thank you very much

can work with DataMapper?

thanks


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 06-27-2013

[eluser]Unknown[/eluser]
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,

Code:
$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.


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 07-09-2013

[eluser]BrokenLegGuy[/eluser]
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?

Code:
array(
  'field' => "password",
  'label' => "Password",
  'rules' => 'min_length[7]|max_length[20]|matches[password_confirm]'
),



Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 08-16-2013

[eluser]rashgang[/eluser]
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




Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 08-16-2013

[eluser]rashgang[/eluser]
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


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 08-26-2013

[eluser]centrion[/eluser]
[quote author="rashgang" date="1376716484"]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[/quote]

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:

Code:
<?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 Smile