bugbountylink
bugbountylink copied to clipboard
Fix race-condition
canCreate isn’t in a shared transaction with the insert function so it's possible to create 2 entries with the same token.
Fix: make the token column UNIQUE PRIMARY KEY