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 - 01-19-2011

[eluser]Frank Rocco[/eluser]
Ben,

This email is working on godaddy.
Code:
$this->load->library('email');
$this->email->from('[email protected]', 'Test Email');
$this->email->to('[email protected]');
$msg = "TEST";
$this->email->subject('User Order');
$this->email->message($msg);
$this->email->send();



Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 01-19-2011

[eluser]Frank Rocco[/eluser]
The only difference in your code is:
Code:
$this->ci->email->from($this->ci->config->item('admin_email', 'ion_auth'), $this->ci->config->item('site_title', 'ion_auth'));



Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 01-19-2011

[eluser]srpurdy[/eluser]
hmm

I been using Ion_auth for awhile. Recently got a second server. It's using php 5.2.6, For some reason it won't logout once logged in. Weird thing is it only does this in firefox. It works in IE.

I tested the exact same files on my older server, which has php 5.2.14 and it works perfectly. :|

The weird thing is I have it working on this server under CI 1.7.2, but this new one is using HMVC CI 2.0. I would think it wouldn't work at all though if I didn't have something setup correctly. Weirdest thing I've seen in awhile lol.

Does anyone know maybe there is a php module I don't have loaded that could cause this?


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 01-19-2011

[eluser]Frank Rocco[/eluser]
If I change the mail type to text instead of html, I get no errors.

Any ideas?


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 01-19-2011

[eluser]Andy78[/eluser]
Has anybody added another table to the users object? For example you have users, groups and meta I want to add a forth table user_profiles and have the fields from this returned in the standard user object. I know it shouldn't be that difficult to this but I'm a bit rusty and tired right now and cant follow the full logic of the library. Is it as simple as adding another join into this function:

Code:
public function get_users($group = false)
    {
        $this->db->select(array(
            $this->tables['users'].'.*',
            $this->tables['groups'].'.name AS `group`',
            $this->tables['groups'].'.description AS group_description'
        ));

        if (!empty($this->columns))
        {
            foreach ($this->columns as $field)
            {
                $this->db->select($this->tables['meta'].'.'. $field);
            }
        }

        $this->db->join($this->tables['meta'], $this->tables['users'].'.id = '.$this->tables['meta'].'.'.$this->meta_join, 'left');
        $this->db->join($this->tables['groups'], $this->tables['users'].'.group_id = '.$this->tables['groups'].'.id', 'left');

        if (is_string($group))
        {
            $this->db->where($this->tables['groups'].'.name', $group);
        }
        else if (is_array($group))
        {
            $this->db->where_in($this->tables['groups'].'.name', $group);
        }

        if (isset($this->ion_auth->_extra_where))
        {
            $this->db->where($this->ion_auth->_extra_where);
        }

        return $this->db->get($this->tables['users']);
    }

I'm not sure how this would fit in with the ion_auth config file and where else in the library id have to take the table into account.

So if anybody else has done this I wouldn't mind an example of your code


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 01-20-2011

[eluser]srpurdy[/eluser]
[quote author="srpurdy" date="1295483019"]hmm

I been using Ion_auth for awhile. Recently got a second server. It's using php 5.2.6, For some reason it won't logout once logged in. Weird thing is it only does this in firefox. It works in IE.

I tested the exact same files on my older server, which has php 5.2.14 and it works perfectly. :|

The weird thing is I have it working on this server under CI 1.7.2, but this new one is using HMVC CI 2.0. I would think it wouldn't work at all though if I didn't have something setup correctly. Weirdest thing I've seen in awhile lol.

Does anyone know maybe there is a php module I don't have loaded that could cause this?[/quote]

nevermind I'm a dumbass as usual. Long night of coding lol.
I forgot the logout area moved url locations so it was just redirecting back to the login screen instead of logging out. Because I used the wrong url. It's still strange though because it does work on the other server, and this behavior is only in Firefox. For example I was trying to auth/logout instead of users/auth/logout the second one works the first one just redirects back to login page, but I'm still logged in.


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 01-20-2011

[eluser]sdotsen[/eluser]
Anyone face this issue before? I can login via Firefox but both IE8 and Chrome keeps redirecting me back to the login page. Not sure what's going on.


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 01-20-2011

[eluser]sdotsen[/eluser]
[quote author="sdotsen" date="1295593524"]Anyone face this issue before? I can login via Firefox but both IE8 and Chrome keeps redirecting me back to the login page. Not sure what's going on.[/quote]

Ok, figured it out. I develop using a virtual machine. I didnt update the time on the server. Once I did that, I was able to log in. With that said, Firefox didnt care; should I be concerned?


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 01-20-2011

[eluser]Ben Edmunds[/eluser]
Hey Frank,

You can check the $config passed to the email library when Ion Auth sends the email. There is an open issue for importing the email.php config file but I haven't gotten around to coding it up yet.


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 01-20-2011

[eluser]Ben Edmunds[/eluser]
sdotsen,

I've ran into that before. You might want to check out some of the CI Session libraries that are available, CI Sessions are known to be a bit problematic.