Ion Auth - Lightweight Auth System based on Redux Auth 2 |
[eluser]Ben Edmunds[/eluser]
dtechplus, You are the guy that emailed me right?
[eluser]dtechplus[/eluser]
Ben. Nope I didn't email you. May be I might ;-) if I can't get round this problem. That aside, I noticed that when I changed the line $config['mailtype'] = "html"; (line 334 or so) of the Ion_auth.php library file to $config['mailtype'] = "text"; I get text-only emails so I guess the problem has to do with HTML formatting.
[eluser]Timothy_[/eluser]
Hello, I have scanned through most of this thread, but I apologise in advance if this has already been discussed. I would like people to be able to log in with either their email address OR their user-name. I looked at the code to see if there was any scope for this and wasn't able to find anything that indicates that Ion Auth lets you authenticate on both fields. Is there an option for this that I have missed or is there room for this in the future. Thanks Tim
[eluser]Phil Sturgeon[/eluser]
[quote author="Timothy_" date="1279534680"]Hello, I have scanned through most of this thread, but I apologise in advance if this has already been discussed. I would like people to be able to log in with either their email address OR their user-name. I looked at the code to see if there was any scope for this and wasn't able to find anything that indicates that Ion Auth lets you authenticate on both fields. Is there an option for this that I have missed or is there room for this in the future. Thanks Tim[/quote] Sorry dude it's set up to work with one OR the other. It shouldn't be too tough to modify the model to get this working. If you can think of an implementation that doesn't break current functionality then me or Ben will be happy to put it into Ion Auth. GitHub fork FTW.
[eluser]ChrisMiller[/eluser]
Hey, Firstly good job with the Library & Documentation, very good documentation and I can almost always find what I am looking for without searching to much but have one suggestion for it. One Suggestion is to add more to the section for function "get_user()" that actually shows what the return object is so its easier then having to dump it out and then pick through it to find what is what. Luckily I have nothing better to do so here ya go... Code: stdClass Object ( Also could you maybe add a function for accessing the current logged in users information instead of having to call the get_user() function... Example being.... Code: /** Finially, You have the function "email_check()" twice in the documentation the second time it should say "identity_check()" you have the example correct just wrong title. Thanks Again, Chris
[eluser]ChrisMiller[/eluser]
[quote author="Phil Sturgeon" date="1279547626"] [quote author="Timothy_" date="1279534680"] I would like people to be able to log in with either their email address OR their user-name. I looked at the code to see if there was any scope for this and wasn't able to find anything that indicates that Ion Auth lets you authenticate on both fields. Is there an option for this that I have missed or is there room for this in the future. Thanks Tim[/quote] Sorry dude it's set up to work with one OR the other. It shouldn't be too tough to modify the model to get this working. If you can think of an implementation that doesn't break current functionality then me or Ben will be happy to put it into Ion Auth. GitHub fork FTW.[/quote] Just a thought here but what about in the model we check to see if the identity is a valid email or just a string and then choose the appropriate table row... Code: public function login($identity, $password, $remember=FALSE) **** NOT TESTED YET ****
[eluser]dtechplus[/eluser]
One of the most useful functions in Ion Auth (for me) is the Code: is_group() Code: is_group() an array (of groups)? Better still either a string or an array. I mean, if I wanted to make a section of my app accessible to more than one group or (roles), the way Code: is_group Code: $group1 = 'webmaster'; Right?? However setting Code: is_group() editing above code... Code: $groups = array($group1,$group2,$group3); What do you guys think or did I miss something?
[eluser]Ben Edmunds[/eluser]
Hey dtechplus, It does already accept an array. It's just not correct in the docs. Thanks for pointing it out, I'll update the docs soon.
[eluser]dtechplus[/eluser]
[quote author="Ben Edmunds" date="1279769929"]Hey dtechplus, It does already accept an array. It's just not correct in the docs. Thanks for pointing it out, I'll update the docs soon.[/quote] Indeed it does! Beautiful! :-) |
Welcome Guest, Not a member yet? Register Sign In |