- Moved all the code related to authentication to AuthLib

- Changed configuration files autoload.php and rest.php to use AuthLib
- Added new method getCheckUserAuth to controller CheckUserAuth.php
- Removed libraries/FHC_Auth.php
- Removed models/CheckUserAuth_model.php
- Removed include/AddonAuthentication.php
This commit is contained in:
Paolo
2017-09-25 17:11:44 +02:00
parent ec62250b41
commit 3cf42c4545
6 changed files with 56 additions and 143 deletions
@@ -1,18 +0,0 @@
<?php
class CheckUserAuth_model extends FHC_Model
{
/**
* Construct
*/
public function __construct()
{
parent::__construct();
$this->load->library('fhc_auth');
}
public function checkByUsernamePassword($username, $password)
{
return success($this->fhc_auth->checkpassword($username, $password));
}
}