diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-01-30 22:39:21 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-01-30 22:39:21 +0100 |
commit | 7dceccd8832791357a7049f38a9f6b83fe431ed2 (patch) | |
tree | de24768936c058419e28a5a09fae9a3ec9236cda /application/libraries/Duser/Duser.php | |
parent | f8ac2f6582001bfa3b42ac4fbdc77ff97137a8f8 (diff) |
Make authentication driver configureable
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/libraries/Duser/Duser.php')
-rw-r--r-- | application/libraries/Duser/Duser.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/application/libraries/Duser/Duser.php b/application/libraries/Duser/Duser.php index c06f4f723..f7b2493d8 100644 --- a/application/libraries/Duser/Duser.php +++ b/application/libraries/Duser/Duser.php @@ -43,8 +43,9 @@ class Duser extends CI_Driver_Library { function __construct() { - // TODO: read config - $this->_adapter = 'db'; + $CI =& get_instance(); + + $this->_adapter = $CI->config->item("authentication_driver"); } // require an optional function to be implemented |