Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]techgnome[/eluser]
[quote author="Timothy_" date="1291386394"]Just continuing from above. I am curious to see if I can get ION_AUTH to connect to another database that is not the default in CI.

I tried changing line 66 in ion_auth_model.php

Code:
$this->load->database('myaccount', TRUE);

No luck.

The user was still registered to the SITE database not the MYACCOUNT database

Any suggestions??

Thanks,

Tim[/quote]

I think that was the right idea... but not executed all the way correctly.

When you use the TRUE parameter, it returns the database connection. So you need to capture it.

Add
Code:
public $ion_db; // Or what ever you want to call it
to the list of variables at the top of the ion_auth model... change line 66 to
Code:
$this->ion_db = $this->load->config('ion_auth', TRUE);

Now, here comes the part that sucks... all occurrences of $this->db would need to be changed to $this->ion_db (or what ever you want to call it).

-tg


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 12-03-2010, 10:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB