feat: complete assessment tasks

This commit is contained in:
Ayobami
2025-08-07 16:34:00 +01:00
parent 463a238503
commit c32a12c13f
7 changed files with 381 additions and 93 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ Route::add('/client/login', function () {
$data = [];
if (empty($_POST['pasword']) || empty($_POST['email'])) {
if (empty($_POST['password']) || empty($_POST['email'])) {
$error = true;
// include_once __DIR__ . '/layout/header/Clientleft_sidebar.php';
include_once __DIR__ . '/client-login.php';
@@ -41,7 +41,7 @@ Route::add('/client/login', function () {
// Insert data into the database using LicenseModel
$userModel = new UserModel();
$result = $userModel->get_by_field('id', $email);
$result = $userModel->get_by_field('email', $email);
// var_dump($result);exit;
if ($result) {
if (password_verify($raw_password, $result['password']) &&