- Added controller CheckUserAuth to authenticate the end user

- FHC_Auth now extends directly authentication
This commit is contained in:
paolo
2016-06-14 15:19:34 +02:00
parent f5ebe0c42b
commit a8b7be6ad5
3 changed files with 75 additions and 3 deletions
@@ -0,0 +1,18 @@
<?php
class CheckUserAuth_model extends FHC_Model
{
/**
* Construct
*/
public function __construct()
{
parent::__construct();
$this->load->library('fhc_auth');
}
public function checkByUsernamePassword($username, $password)
{
return $this->_success($this->fhc_auth->checkpassword($username, $password));
}
}