summaryrefslogtreecommitdiffstats
path: root/application/libraries/Duser
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-01-30 22:39:21 +0100
committerFlorian Pritz <bluewind@xinu.at>2013-01-30 22:39:21 +0100
commit7dceccd8832791357a7049f38a9f6b83fe431ed2 (patch)
treede24768936c058419e28a5a09fae9a3ec9236cda /application/libraries/Duser
parentf8ac2f6582001bfa3b42ac4fbdc77ff97137a8f8 (diff)
Make authentication driver configureable
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/libraries/Duser')
-rw-r--r--application/libraries/Duser/Duser.php5
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