add template files and compose file, fix syntax errors in template

This commit is contained in:
boris committed 2024-11-21 12:33:26 +00:00
1 parent b64c6d835e
commit e1b1455ac0
90 files changed
+60646

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
<?php
require_once("Models/User.php");
$user = new User();
$userDataSet = new UserDataSet();
if (isset($_POST["loginButton"])) {
$username = $_POST["username"];
$password = hash("sha256", $_POST["password"]);
// create a new student dataset object that we can generate data from
if($userDataSet->checkUserCredentials($username, $password)) {
$user->Authenticate($username, $password);
}
else {
echo "Error in Uname / Pass";
}
}
if (isset($_POST["logoutButton"]))
{
$user->logout();
}