EllisLab text mark
Advanced Search
68 of 89
68
   
Ion Auth - Lightweight Auth System based on Redux Auth 2
Posted: 26 July 2011 05:00 AM   [ # 1011 ]   [ Rating: 0 ]
Joined: 2011-03-10
16 posts
cusaro - 16 June 2011 01:49 PM

supports ion auth multiple groups per user?

cusaro

Same question for me.

 
Posted: 26 July 2011 05:04 AM   [ # 1012 ]   [ Rating: 0 ]
Avatar
Joined: 2009-08-28
80 posts
DirkZz - 26 July 2011 09:00 AM
cusaro - 16 June 2011 01:49 PM

supports ion auth multiple groups per user?

cusaro

Same question for me.

I think, version 2 does, but is still alpha.


@Ben,
when do you think that Ion Auth 2 will be stable enough for production use?

Best regards
Bernd

 
Posted: 26 July 2011 05:45 PM   [ # 1013 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-26
823 posts

Bernd is correct, v2 supports that.

Bernd,
I’m really not sure, I haven’t received many bug reports so it may be more stable than I think.  I will probably switch it to be master soon so it is the main library people use in order to force more testing.

 Signature 

BenEdmunds.com

Contact Me:                                    My Code: 

  ben.edmunds@gmail.com            Github
  @benedmunds

 
Posted: 27 July 2011 05:15 AM   [ # 1014 ]   [ Rating: 0 ]
Avatar
Joined: 2009-08-28
80 posts

Ben, do you use Version 2 already in Pyro CMS?

 
Posted: 27 July 2011 05:39 AM   [ # 1015 ]   [ Rating: 0 ]
Avatar
Joined: 2011-03-26
111 posts

login errors doesnt show in V2. Messages and errors are needed to be checked.

ion_auth_model, line 719 :

$this->set_message('login_unsuccessful'); 

auth.php, line 71-73 :

//if the login was un-successful
//redirect them back to the login page
$this->session->set_flashdata('message'$this->ion_auth->errors()); 

Regards,
Yusuf

 Signature 

Ignited Datatables
Nested Sets

 
Posted: 27 July 2011 09:16 AM   [ # 1016 ]   [ Rating: 0 ]
Avatar
Joined: 2011-01-17
20 posts

I am using this awesome Auth library for a while and I love this..
but I dont like the part when it generates usernames on its own when its already taken.
Like : username1 . username2 . etc
This can be annoying for some users who register with a name in mind and will see username1 etc…

Thanks ..

 Signature 

CI fan

 
Posted: 27 July 2011 11:20 AM   [ # 1017 ]   [ Rating: 0 ]
Joined: 2011-07-27
1 posts

I’m getting an mysql syntax error on the ion auth mysql install file on line 2 (see message below), any idea why?

Message:

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHERE `0` = ‘admin@admin.com’’ at line 2

SELECT COUNT(*) AS `numrows` WHERE `0` = ‘admin@admin.com’

 
Posted: 27 July 2011 12:08 PM   [ # 1018 ]   [ Rating: 0 ]
Avatar
Joined: 2008-02-12
3 posts
tropiburguer - 27 July 2011 03:20 PM

I’m getting an mysql syntax error on the ion auth mysql install file on line 2 (see message below), any idea why?

Message:

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHERE `0` = ‘admin@admin.com’’ at line 2

SELECT COUNT(*) AS `numrows` WHERE `0` = ‘admin@admin.com’

Looking at the ion_auth.sql file from what I think is the most recent version available from Ben’s site, there’s not a single “SELECT” in the sql file - its all “CREATE” and “INSERTS” to setup the tables you’ll need in the DB. So I don’t know what .sql script you’ve got, but I don’t think it is the install script!

 
Posted: 29 July 2011 09:19 PM   [ # 1019 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-26
823 posts

Bernd,
No, PyroCMS isn’t using v2 yet.


Yusuf,
Please post bugs and pull requests in github, they tend to get lost in all the noise here, thanks!

 Signature 

BenEdmunds.com

Contact Me:                                    My Code: 

  ben.edmunds@gmail.com            Github
  @benedmunds

 
Posted: 30 July 2011 04:19 AM   [ # 1020 ]   [ Rating: 0 ]
Joined: 2011-04-06
7 posts

Is there a way to get the currently logged in users for a group? I see a method to get the active users but not the logged in users.

 
Posted: 30 July 2011 03:58 PM   [ # 1021 ]   [ Rating: 0 ]
Joined: 2010-06-04
32 posts

could you not do

pseudo code not at my pc.

if(ion auth logged in{
   
if(group == 'admin'......etc etc etc)

Sent from Sony Ericsson Xperia Arc

 
Posted: 30 July 2011 11:04 PM   [ # 1022 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-26
823 posts

You’d have to do a query against the DB sessions to get currently logged in users.

 Signature 

BenEdmunds.com

Contact Me:                                    My Code: 

  ben.edmunds@gmail.com            Github
  @benedmunds

 
Posted: 07 August 2011 06:58 AM   [ # 1023 ]   [ Rating: 0 ]
Avatar
Joined: 2010-09-19
19 posts

Hi Ben

I’m in the process converting my current project to Ion Auth 2 and I’ve noticed that the ‘get_newest_users()’ function (and others) has been removed.

I had a dig around in the model and found the ‘limit’ and ‘order_by’ functions and had a try at reproducing ‘get_newest_users()’ using:

$this->ion_auth->limit(6);
$this->ion_auth->order_by('created_on''desc');
return 
$this->ion_auth->users()->result(); 

But it returns all users, not just the latest 6.

Any suggestions how I can code this?

Also can I limit it to users of group ‘members’ only?  The users() functions doesn’t appear to reference the users_groups table.

Regards
Russ

 
Posted: 07 August 2011 07:42 AM   [ # 1024 ]   [ Rating: 0 ]
Joined: 2008-09-21
4 posts
rulin - 07 August 2011 10:58 AM

Hi Ben

I’m in the process converting my current project to Ion Auth 2 and I’ve noticed that the ‘get_newest_users()’ function (and others) has been removed.

I had a dig around in the model and found the ‘limit’ and ‘order_by’ functions and had a try at reproducing ‘get_newest_users()’ using:

$this->ion_auth->limit(6);
$this->ion_auth->order_by('created_on''desc');
return 
$this->ion_auth->users()->result(); 

But it returns all users, not just the latest 6.

Any suggestions how I can code this?

Also can I limit it to users of group ‘members’ only?  The users() functions doesn’t appear to reference the users_groups table.

Regards
Russ

This is simple!
Change the limit to 1 as below and it will filter the latest record only.

$this->ion_auth->limit(1);
$this->ion_auth->order_by('created_on''desc');
return 
$this->ion_auth->users()->result(); 
 
Posted: 07 August 2011 01:17 PM   [ # 1025 ]   [ Rating: 0 ]
Avatar
Joined: 2010-09-19
19 posts

Thanks for the reply ibbrx,

Why should limit(1) work when limit(6) doesn’t? (and it doesn’t, I still get all users).
Plus I want the 6 latest users, not just the 1

Russ

 
68 of 89
68