<?php

namespace igniteStack\auth\login;

include_once "../../autoload.php";
use igniteStack\System\Flow\Authentication\CSRF;
# Start a session
session_start();
# Verify CSRF objects
try {
    CSRF::verify_CSRF_Object('csrf_token', $_POST['csrf_token']);
} catch (Exception $e) {
    die($e->getMessage());
}
?>

<html>
    <head>
        <title>
            Logged in
        </title>
    </head>
    <body>
        <h3>
            You have logged in successfully.
        </h3>
    </body>
</html>
<?php