matcha-devs / matcha

A comprehensive web-based personal finance tracker and budgeting tool.
6 stars 0 forks source link

Decrease auto counter in database when user fails to sign-up #12

Open CarlosACJ55 opened 4 months ago

CarlosACJ55 commented 4 months ago

Right now, the query from AddUser in mysql.go is great at not creating a new user whenever something is missing from the request. However, say for example there is only a single user with id 1, when another user later comes in and submits 3 mistakes and 1 correct sign up, they are assigned id 5 instead of id 2. Please add the failed id to the open_id table so that it can get taken on the next attempt, or otherwise fix this bug.