TituxMetal/fullstack-remix-real-world

Check username unique constraint

Closed this issue · 0 comments

When registering a new user, the username should be checked against the database and an error should be returned if it already exists.

Actually the unique constraint is started by prisma itself and registered in the dev console, it would be great if we throw the same error as now on checking the existing email and update the message a bit.