Files
FHC-Core/application/controllers/system/Logout.php
T
SimonGschnell a21a292da6 dokument upload
2024-01-29 16:48:41 +01:00

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();
}
}