Easily add an authentication mechanism to the LightMVC Skeleton Application!
$ mysql -uroot fw < data/db_data_lockdown.sql),
require 'lockdown.config.php';at the end of the 'config/config.local.php' file.
Once done, the Lockdown authentication module will be working.
It is possible to verify if a user is authenticated by checking if the
loggedin index is set within the application's session object. Moreover, other indexes, like
id will also be set within the session object.
In the 'data' folder of this module, it is possible to find an example of an IndexController, with its corresponding template, which uses the session object in order to check if a user is logged in or not, and display the session information within its template accordingly.