feat: complete assessment tasks
This commit is contained in:
+2
-2
@@ -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']) &&
|
||||
|
||||
Reference in New Issue
Block a user