Authentication working with LDAP

This commit is contained in:
paolo
2016-04-11 17:23:51 +02:00
parent 55187700c2
commit 7032d8be7f
4 changed files with 16 additions and 13 deletions
+4 -4
View File
@@ -23,7 +23,7 @@ if (! defined('BASEPATH'))
/**
* Handles user authentication and registration process
*/
class AuthAPI extends APIv1_Controller
class APIAuth extends APIv1_Controller
{
/**
* Userauth-Controller constructor.
@@ -42,7 +42,7 @@ class AuthAPI extends APIv1_Controller
// Load helper
//$this->load->helper('fhcauth');
$this->load->library('session');
$this->load->library('FHC_Auth');
$this->load->library('Fhcauth');
}
/**
@@ -60,8 +60,8 @@ class AuthAPI extends APIv1_Controller
$httpstatus = null;
$username = urldecode($this->get('username'));
$password = urldecode($this->get('password'));
$account = $this->FHCAuth->auth($username, $password);
$account = $this->fhcauth->auth($username, $password);
// perform login checks
if (!$account)