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]
  • #721 / Jan 19, 2011 10:22am

    Frank Rocco

    109 posts

    Ben,

    This email is working on godaddy.

    $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();
  • #722 / Jan 19, 2011 10:24am

    Frank Rocco

    109 posts

    The only difference in your code is:

    $this->ci->email->from($this->ci->config->item('admin_email', 'ion_auth'), $this->ci->config->item('site_title', 'ion_auth'));
  • #723 / Jan 19, 2011 2:23pm

    srpurdy

    146 posts

    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?

  • #724 / Jan 19, 2011 2:49pm

    Frank Rocco

    109 posts

    If I change the mail type to text instead of html, I get no errors.

    Any ideas?

  • #725 / Jan 19, 2011 8:40pm

    Andy78

    91 posts

    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:

    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

  • #726 / Jan 20, 2011 3:51am

    srpurdy

    146 posts

    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?

    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.

  • #727 / Jan 20, 2011 9:05pm

    sdotsen

    17 posts

    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.

  • #728 / Jan 20, 2011 9:09pm

    sdotsen

    17 posts

    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.

    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?

  • #729 / Jan 21, 2011 12:59am

    Ben Edmunds

    812 posts

    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.

  • #730 / Jan 21, 2011 1:01am

    Ben Edmunds

    812 posts

    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.

  • #731 / Jan 22, 2011 1:37am

    sanket

    9 posts

    @ben : thanks mate its working like a charm :D

  • #732 / Jan 24, 2011 10:08am

    Frank Rocco

    109 posts

    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.

    Do you have a work around?

    Thanks

  • #733 / Jan 24, 2011 10:26am

    codeninja

    62 posts

    Has anyone used or is anyone using this as a HMVC module? I would like to just drop it into my application as a module and use it.

    Thoughts?

  • #734 / Jan 24, 2011 2:40pm

    Devon Lambert

    139 posts

    Has anyone used or is anyone using this as a HMVC module? I would like to just drop it into my application as a module and use it.

    Thoughts?

    Hey CodeNinja,

    You should check out PyroCMS. They make use of the library as a module within the CMS.

    I used their setup as a guideline when creating this myself.

    - Devon

  • #735 / Jan 27, 2011 12:04am

    Ben Edmunds

    812 posts

    Frank,

    Sorry no I don’t.  If you code up the fix and send me a pull request I’ll be happy to merge it in.


    Thanks,

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

ExpressionEngine News!

#eecms, #events, #releases