DevSpaceHuntsville / WebsiteAndApi

This is the repo for the current website for the DevSpace Technical Conference in Huntsville, Alabama. There was a major architechure change from last year, so I archived the previous websaite and started fresh.
MIT License
10 stars 12 forks source link

Student ticket button/form allows multiple submissions #9

Closed ProfessorTom closed 8 years ago

ProfessorTom commented 8 years ago

Steps for Reproduction

  1. Enter text in the email text box on the Tickets page.
  2. Press enter or click the "Get Student Access Code" button multiple times before the first request has finished processing.

Expected Behavior Once submitted, form submission should be disabled until the previous request has completed or timed out.

Actual Behavior The page will more than happily submit multiple requests without waiting for previous requests to complete or time out.

freestylecoder commented 8 years ago

The server should handle this and only process the request once. Might want to check to make sure. Since the email address is a unique key in the database, there isn't really a way they could generate more than one; the subsequent inserts would fail.

Fixing issue #8 should fix this.

freestylecoder commented 8 years ago

See comments in #8