mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
32 lines
697 B
PHP
Executable File
32 lines
697 B
PHP
Executable File
<?php
|
|
|
|
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/**
|
|
* NOTE: extends the FHC_Controller instead of the Auth_Controller because it is NOT neeaded to checks permissions to logout
|
|
*/
|
|
class Logout extends FHC_Controller
|
|
{
|
|
/**
|
|
*
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
// Loads AuthLib to check if the user is authenticated and to use the lib logic
|
|
$this->load->library('AuthLib');
|
|
}
|
|
|
|
//------------------------------------------------------------------------------------------------------------------
|
|
// Public methods
|
|
|
|
/**
|
|
* Logout the current logged user
|
|
*/
|
|
public function index()
|
|
{
|
|
$this->authlib->logout();
|
|
}
|
|
}
|