Browse Source
Replaced select-then-insert with direct insert wrapped in try-catch. The UNIQUE constraint on username catches duplicate registrations atomically, returning a clean error message instead of leaking a raw DB exception. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>feat/registration-page
1 changed files with 16 additions and 20 deletions
Loading…
Reference in new issue