diff options
Diffstat (limited to 'application/libraries')
-rw-r--r-- | application/libraries/Duser/Duser.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/application/libraries/Duser/Duser.php b/application/libraries/Duser/Duser.php index 6212bfa6d..8005a00bb 100644 --- a/application/libraries/Duser/Duser.php +++ b/application/libraries/Duser/Duser.php @@ -110,4 +110,15 @@ class Duser extends CI_Driver_Library { { return $this->{$this->_adapter}->get_email($userid); } + + public function test_login_credentials($username, $password) + { + $login_info = $this->{$this->_adapter}->login($username, $password); + + if (isset($login_info['username']) && $login_info['username'] === $username) { + return true; + } + + return false; + } } |