fixed bug that made it impossible for waitlisted users to register

This commit is contained in:
2026-01-19 16:10:47 +01:00
parent 9bde723747
commit ad630d65e7

View File

@@ -62,6 +62,10 @@ def index():
if existing_user.confirmed: if existing_user.confirmed:
flash("You are already registered and confirmed!", "info") flash("You are already registered and confirmed!", "info")
elif existing_user.on_waitlist: elif existing_user.on_waitlist:
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") flash("You are already on the waitlist", "info")
else: else:
if existing_user.num_emails_sent < 5: if existing_user.num_emails_sent < 5: