Thanks Wayne! I will definitely give that a look this weekend. CI has changed a bit, so its good to see people making progress.
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]#811 / Mar 11, 2011 6:24pm
Thanks Wayne! I will definitely give that a look this weekend. CI has changed a bit, so its good to see people making progress.
#812 / Mar 12, 2011 9:34pm
For me, it`s working in CI 2.0 without that patch you were talking about few post ago ( this one )
Should I be worried?
#813 / Mar 13, 2011 10:09pm
dudel,
We got a fix in for that issue a couple of weeks ago. No need to patch the core anymore.
#814 / Mar 14, 2011 8:49am
Thank you Ben. I really appreciate what you`re doing here.
Keep up the good work.
#815 / Mar 14, 2011 12:59pm
I am trying to help now so post your controller code.
Thanks for the reply, and apologies for not replying sooner. I’ll be replying to you via private message in a short while.
#816 / Mar 14, 2011 2:22pm
are there going to be any facebook support in the future?
#817 / Mar 14, 2011 6:24pm
JayArias,
Not in the library. You could make an library that relies on or extends Ion Auth for that purpose though if you like.
#818 / Mar 15, 2011 8:28am
Awesome library.
I have a question. I added a meta to users called ‘app_id’, which connects the user to an application.
In my delete application function I want to delete both the user and the application. I have the application id, so I am trying to detect if there is a user that has the app_id == application id.
I found the extra_where() function, but I am unsure of how to use it. I could query the meta table and all, but I have a feeling ion auth can do it for me.
This is what I have so far:
function delete_application($app_id) {
// Check to see if there is a user connected to the application
echo $this->ion_auth->extra_where("meta.aanmeldig_id = '" . $app_id . "'");I need the id of the user that has the application connected to it, so I can do a delete_user.
#819 / Mar 16, 2011 1:30pm
Is there a quick guide for updating dx_auth users to ion_auth?
#820 / Mar 16, 2011 3:47pm
Maglok,
Something like this should do what you need:
function delete_application($app_id) {
// Check to see if there is a user connected to the application
$this->ion_auth->extra_where("meta.aanmeldig_id", $app_id);
$this->ion_auth->get_user($user_id);#821 / Mar 16, 2011 6:59pm
dallen33,
No, the main thing you need to look at is the difference in the encryption algorithms.
#822 / Mar 17, 2011 1:55pm
Having trouble converting my Identity to ‘username’. I changed it in the config file but do I have to make edits elsewhere? Cant login by username in the login form.
#823 / Mar 17, 2011 6:57pm
hello! Hope somebody can help me!
I can’t call any ion_auth methods AFTER I load a module.
I’ve created an ion_auth module in a slightly different way wayne described. This module works fine, all actions of the demo application work like a charm. To avoid any calls of ion_auth AFTER a module is loaded, for example my navigation module in the template controller, I’ve build a cascade of controllers which extend each other.
The first one, auth_controller extends the base controller and loads the ion_auth library from the module. Login status and userdata are fetched and checked by the corresponding methods of the library. I am forced do this, because any later call of ion_auth produces errors.
The second controller is my template_controller which initializes all the base templates, loads all views and holds the public render function which is called in my application controllers. In this controller, view modules are merged into my templates. And thats the point. module loaded, good bye ion_auth.
In my application controller: load ion_auth and call $this->ion_auth->get_userdata(); php gives me the following error:
“Call to a member function userdata() on a non-object in /var/www/www.myserver.de/application/modules/auth/models/ion_auth_model.php on line 726” which points to “$this->session->userdata(‘user_id’);”
also this warning is thrown: “Message: Undefined Property: navigation::$session Filename: core/Model.php Line Number: 50”
Does anybody know a solution for this problem?
By the way: This is my second attempt… I previously installed ion_auth “conventionally” as a simple library and not as a module with the same results… errors when calling it after a module.
#824 / Mar 18, 2011 1:00am
Oliver,
$this->ion_auth->get_userdata() isn’t an Ion Auth method, are you needing $this->ion_auth->get_user() instead?
#825 / Mar 18, 2011 1:00am
jk215,
Are you still having this issue?