DavidBergevoet / Setup-Reservation

0 stars 1 forks source link

Users should not be able to reserve 2 consecutive timeslots #4

Closed PimClappers closed 1 week ago

PimClappers commented 3 weeks ago

When a user has placed a reservation, he or she should not be able to place a second reservation immediately afterwards. Currently, users can reserve an unlimited amount of time by spamming the reserve button. See image below. (Name is censored for privacy reasons). Ofcourse, a user could still reserve a second time slot under a different name. Maybe prevent multiple reservations by checking the ip-adress of the user? Screenshot_20240607_160819_WhatsApp

InzeNL commented 3 weeks ago

The IP tracking that will be implemented in https://github.com/DavidBergevoet/Setup-Corn-Reservation/issues/2 can be used for this.

It might be best to add a maximum amount of total time, as opposed to just total time per request

InzeNL commented 2 weeks ago

@DavidBergevoet

For the "maximum time", how do we deal with that? Look at this example:

  1. You can reserve a maximum of 60 minutes
  2. I place a reservation for 60 minutes
  3. 30 minutes in, I want to place another reservation

Do I have to wait for the full reservation to pass, or can I, at this point, reserve 30 more minutes?