Participant login
-Attendees can sign in here to view their webinar dashboard after registration.
- - - - - - - - - -Tip: if you changed static assets recently and do not see updates, hard refresh the page with Ctrl/Cmd + Shift + R.
-diff --git a/assets/pasted-20260310-065120-46ee3070.png b/assets/pasted-20260310-065120-46ee3070.png new file mode 100644 index 0000000..0a808b8 Binary files /dev/null and b/assets/pasted-20260310-065120-46ee3070.png differ diff --git a/login.php b/login.php index b1118c7..bfe1ca0 100644 --- a/login.php +++ b/login.php @@ -13,7 +13,6 @@ if (isset($_GET['logout']) && $_GET['logout'] === '1') { $adminError = ''; $adminSuccess = ''; -$participantError = ''; try { $adminCount = admin_count_users(); @@ -79,32 +78,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { } } } - - if ($loginType === 'participant_login') { - $email = strtolower(trim((string) ($_POST['email'] ?? ''))); - $password = (string) ($_POST['password'] ?? ''); - - if (!filter_var($email, FILTER_VALIDATE_EMAIL) || $password === '') { - $participantError = 'Enter your registration email and password.'; - } else { - try { - $stmt = db()->prepare('SELECT * FROM attendees WHERE email = ? AND deleted_at IS NULL LIMIT 1'); - $stmt->execute([$email]); - $attendee = $stmt->fetch(PDO::FETCH_ASSOC); - - if ($attendee && !empty($attendee['password']) && password_verify($password, $attendee['password'])) { - $_SESSION['user_id'] = (int) $attendee['id']; - header('Location: dashboard.php'); - exit; - } - - $participantError = 'Invalid email or password. If you have not registered yet, please use the webinar form.'; - } catch (PDOException $e) { - error_log('Participant login failed: ' . $e->getMessage()); - $participantError = 'Participant login is temporarily unavailable.'; - } - } - } } ?> @@ -112,8 +85,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
-Use the admin area to manage registrations, edit attendee data, export CSV, and track daily signup trends. Attendees can still log in separately to view their webinar dashboard.
+Use the admin area to manage registrations, edit attendee data, export CSV, and track daily signup trends.
Attendees can sign in here to view their webinar dashboard after registration.
- - - - - - - - - -Tip: if you changed static assets recently and do not see updates, hard refresh the page with Ctrl/Cmd + Shift + R.
-
+CLIENT -> SERVER:
|
+CLIENT -> SERVER: