From ad630d65e741933b92203de543233d4b2fcc0611 Mon Sep 17 00:00:00 2001 From: cato447 Date: Mon, 19 Jan 2026 16:10:47 +0100 Subject: [PATCH] fixed bug that made it impossible for waitlisted users to register --- app/routes.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index a103d2d..6fca809 100644 --- a/app/routes.py +++ b/app/routes.py @@ -62,7 +62,11 @@ def index(): if existing_user.confirmed: flash("You are already registered and confirmed!", "info") elif existing_user.on_waitlist: - flash("You are already on the waitlist", "info") + if confirmed_count < max_spots: + send_verification_email(existing_user) + flash("Registration started! Check your email to confirm your spot.", "success") + else: + flash("You are already on the waitlist", "info") else: if existing_user.num_emails_sent < 5: flash("Confirmation email resent. Please check your inbox.", "info")