I updated my post several times. :lol:
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
February 10, 2010 7:00pm
Subscribe [287]#436 / Jul 03, 2010 1:25am
I updated my post several times. :lol:
#437 / Jul 03, 2010 7:13pm
Is documentation not a good idea for this library ?
#438 / Jul 04, 2010 5:26am
Is documentation not a good idea for this library ?
sirwan.me,
the library is lightweight, the code seems to be self explaining and Ben does a great support here in the forum.
Yes, documentation is a good idea.
The library is open source, so feel free to write one.
Best regards
Bernd
#439 / Jul 05, 2010 9:55am
Is documentation not a good idea for this library ?
thumbs up 😊
#440 / Jul 07, 2010 3:39pm
Hi Guys,
Nice Auth Library! lightweight indeed. 😊
I’m curious is there a function to protect an entire controller instead of just specific functions?
I only just started playing with it. I been using freakauth for awhile, but decided it’s too bulky for most projects I do.
Anyway thanks guys! :D
#441 / Jul 08, 2010 12:25am
srpurdy,
If you mean like checking logged in or if the user is an admin just add a constructor to the controller with ion_auth->logged_in() or ion_auth->is_admin() or whatever you need.
#442 / Jul 08, 2010 12:30am
alanmi2 and Sandyandi N. dela Cruz,
Please fork and submit a pull request on Github. It gets a little difficult to keep up with all of the code changes through the forums and email.
Bernd,
I haven’t forgot about ya man, I promise! 😉
#443 / Jul 10, 2010 12:21pm
ben,may i know why you used UNIXTIME rather to use CURRENT_TIME on created_on and last_login field?
#444 / Jul 10, 2010 2:15pm
ben,may i know why you used UNIXTIME rather to use CURRENT_TIME on created_on and last_login field?
I think, the reason is to be compatible with CI date helper:
http://ellislab.com/codeigniter/user-guide/helpers/date_helper.html
#445 / Jul 10, 2010 3:40pm
Sandyandi N. dela Cruz,
I just added this code to the update_user method in the model:
if (array_key_exists($this->identity_column, $data) && $this->identity_check($data[$this->identity_column]) && $user->{$this->identity_column} !== $data[$this->identity_column])
{
$this->ion_auth->set_error('account_creation_duplicate_'.$this->identity_column);
return FALSE;
}Please check and make sure it works for you as well.
Thanks!
#446 / Jul 10, 2010 5:22pm
Is there a particular reason for the following functions, not to be merged?
message();
set_message();
error();
set_error();
I managed to cook it down to 2 functions, 1 which takes the message, message type and the delimiter position (1,2) and then 1 function which selects the correct delimiter based on the type of message.
But I could be wrong, there might be some clever reason it’s devided 😊
Edit: which would be awesome to know as I’m coding a message feature into a core class of a site, rather than just the authentication system ^.-
#447 / Jul 10, 2010 5:30pm
Kola,
No technical reason. It was coded to be similar to the form_validation error methods.
#448 / Jul 10, 2010 5:42pm
Oh and why does it recieve an array of messages? I’m new to the whole CI (and MVC pattern for that matter, which can be confusing), so I guess you wouldn’t send more than 1 error? Atleast I had issues trying to dig a set of messages out from your example codes. Might just have missed it. System looks pretty solid though, I just suck at understanding stuff I havnt wrote me self :/
#449 / Jul 10, 2010 5:47pm
Kola,
Do you mean ion_auth->errors()?
If you do, it returns all of the errors formatted with the delimiters that are set.
#450 / Jul 10, 2010 6:43pm
Yo everybody,
Due to the large demand from you guys and me actually having a little time to spare today I’ve started (you might want to sit down for this) DOCUMENTING!
I would love some help if anybody has some time, I’ve added a userguide folder to the github repo and you can view what I’ve got so far (which isn’t much) at http://benedmunds.com/ion_auth/