I passed all test except one. ":( registration rejects duplicate username" (picture below)
Any suggestion or ideas?
CS50 Stack Exchange is a question and answer site for students of Harvard University's CS50. It only takes a minute to sign up.Sign up to join this community
After testing website with Postman I found my mistake.
After a successful registration I was logging user in automatically (saving session["user_id"] = result and redirecting to index.html). If second POST request was sent using the same username, user was redirected to the homepage (index.html) resulting in response code 200 (and failed check50 test).
It seems that check50 test expects you to render the same registration.html page after successful registration or allow logged-in user to register. In staff solution (http://finance.cs50.net/) user is automatically redirected, but http://finance.cs50.net/register can be accessed even after logging-in.