xzhang395 / Stalk-Market

find the best turnip price
Apache License 2.0
2 stars 2 forks source link

Clients should only submit the form once, probably #11

Closed chiapet92 closed 4 years ago

davidpchi commented 4 years ago

It depends on what you want to achieve here:

chiapet92 commented 4 years ago

There's an outstanding issue to integrate with google auth, which would serve as a basis to allow each client only have a single entry within a half-day period. ANy further updates would update their existing entry rather than write a new entry.

Currently, the issue at hand is that there's a lack of response to the client when they click submit, which means that they run the risk of submitting multiple times if they click multiple times by accident.

As a short term, just restriction from submitting multiple times in the same session should work. The long term solution for this ticket would be post google auth integration so we'd have a uuid to be keyed by user.

chiapet92 commented 4 years ago

Completed w/ https://github.com/xzhang395/Stalk-Market/commit/8aca9ceda87071f2ce010e155c7fcc1c45d7f96f