Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]jens.steppe[/eluser]
Hi Ben,

I've been searching an Authentication framework for my current project, and IonAuth looks very cool. I admire you for your support here.

I have a project using CL 2 and Doctrine 2, can I easily intregrate your framework in my project?

Cheers,

J.

[eluser]Johan André[/eluser]
Hey!

I used the spark-version (1.4) of Ion Auth. Is it possible to extend it with my own functions without changing the original file?

[eluser]jens.steppe[/eluser]
Hi,

I managed to get ion auth running, but i have a problem after logging in.

My current project url has multiple virtual subdomain, test.mydomain.com and test2.mydomain.com point to the same as www.mydomain.com but test and test2 are to "users" of my project.

But my problem is that the subdomains disappear after the login. I know that the login redirects to the baseurl that in my case is http://mydomain.com, but when i try to print the current subdomain before the login it is already gone.

This is a problem because if users are on test.domain.com and they log in, i want to redirect back to test.domain.com and not to the homepage.

Anyone has an idea?

Thx

[eluser]Ben Edmunds[/eluser]
ReyPM,

The userguide is located at http://benedmunds.com/ion_auth/ but for something that complex you're best just reading the code.

[eluser]Ben Edmunds[/eluser]
Johan André,

Not currently. You could always extend the class though.

[eluser]Ben Edmunds[/eluser]
jens.steppe,

Just modify the controller to fit your needs.

[eluser]jens.steppe[/eluser]
I'm trying, but with not much succes so far Smile

I'm having troubles setting it up to use my complete *.domain not only domain.com

When i go to test.localhost/auth/index he redirects me to the login page, because im not logged in. I log myself in, he redirects me to the homepage localhost/home but when i try to go to test.localhost/auth/index he redirects me to the login screen again.

I've tried to put the cookie domain to .localhost but this is not working so far.

Anyone having same problems, or dealt with it in the past?

Thx

[eluser]nomie7[/eluser]
how can I get all active users in an array except the one logged in. I need to put user in a drop down list.

I can get the list using get_active_users_array() but it includes the user who is logged in as well.

[eluser]Ben Edmunds[/eluser]
nomie7,

Something like this:

Code:
$this->ion_auth->extra_where('users.id !=', $this->user->id);
$users = $this->ion_auth->get_active_users_array();
$this->ion_auth->extra_where('');

[eluser]nomie7[/eluser]
Ben thanks for the help. Now is_logged_in() not working...

Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Messages extends CI_Controller {
    
        function __construct(){
        
        parent::__construct();
        $this->load->library('ion_auth');
        $this->load->library('session');
        $this->load->database();
        $this->load->helper('url');
    }

    
    function index(){
    
    if (!$this->ion_auth->logged_in())
        {
            $this->load->view('auth/index');

        } else {
                        $this->load->view('messages');
                }
}
}

Even if i am not logged in i get view of messages.




Theme © iAndrew 2016 - Forum software by © MyBB