prepare("SELECT * FROM users WHERE email = ?"); $stmt->execute([$email]); $user = $stmt->fetch(); if ($user && password_verify($password, $user['password'])) { if ($user['verified'] == 0) { $error = "Your account is not verified. Please check your email for the verification link."; } else { $_SESSION['user_id'] = $user['id']; $_SESSION['role'] = $user['role']; $_SESSION['full_name'] = $user['full_name']; // Check if onboarding is completed if ($user['role'] === 'founder' && $user['onboarding_completed'] == 0) { header("Location: founder_onboarding.php"); } else { header("Location: dashboard.php"); } exit; } } else { $error = "Invalid email or password."; } } } $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby'; ?>
Log in to access your startup network.