$email,
"password" => $password
]);
if ($response['success']) {
$_SESSION['patient'] = $response['data'];
header("Location: /dashboard/index.php");
exit;
} else {
$error = $response['message'];
}
}
?>