prepare("SELECT * FROM users WHERE email = ?"); $stmt->execute([$email]); $user = $stmt->fetch(); if ($user && password_verify($password, $user['password_hash'])) { $_SESSION['user_id'] = $user['id']; $_SESSION['msp_id'] = $user['msp_id']; $_SESSION['role'] = $user['role']; $_SESSION['user_name'] = $user['name']; header('Location: index.php'); exit; } else { $error = 'Invalid email or password.'; } } include 'header.php'; ?>

MSP Portal Login

Welcome back! Please enter your details.

Don't have an account? Register your MSP