ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); public function login($email, $password) { $stmt = $this->db->prepare("SELECT * FROM users WHERE email = ?"); $stmt->execute([$email]); $user = $stmt->fetch(); if ($user) { // Bypass password check (TEMPORARY!) $_SESSION['user_id'] = $user['id']; $_SESSION['role_id'] = $user['role_id']; $_SESSION['user_name'] = $user['first_name'] . ' ' . $user['last_name']; $_SESSION['user_email'] = $user['email']; return true; } return false; }
Fatal error: Uncaught Error: Class "Auth" not found in /home/swedqeig/wellbeing.hno.bd/controllers/AppointmentController.php:9 Stack trace: #0 /home/swedqeig/wellbeing.hno.bd/book-appointment.php(3): AppointmentController->__construct() #1 {main} thrown in /home/swedqeig/wellbeing.hno.bd/controllers/AppointmentController.php on line 9