buggyrace / buggy-race-server

Race server and supporting material for running a "Buggy Racing" Python programming project
https://www.buggyrace.net
Other
1 stars 0 forks source link

explicitly check for unique username when editing users #223

Closed davewhiteland closed 4 months ago

davewhiteland commented 4 months ago

Currently the unique constraint kicks in and returns a 500 instead of rejecting attempt to edit username to one that is not unique.

davewhiteland commented 4 months ago

Actually the unique constraint is checked and if editing an existing user to use another one, it's handled correctly (so need to identify how I got that 500 once; haven't been able to recreate yet!)

Screenshot 2024-05-02 at 16 09 49

davewhiteland commented 4 months ago

Ah — 500 error occurs if uploaded username is not already lower case (!) — that's a bug!