Validate User Sign Up Data in Remix and Hash a Password

InstructorIan Jones

Share this video with your friends

Send Tweet

You need to accept input from a user to sign them up to your application. Creating a user in the database is a straightforward Prisma.create function call.

The tricky part here is that we want to ensure bad data is not inputed into the form. We’ve done form validation before but this lesson will show you a more complex version of it. 

Among the validation that is applied, you will hash the password that’s given to us before saving it to the database as well as check the database for existing users when a sign up is attempted.