DEV Community 👩‍💻👨‍💻

Jake Sarjeant
Jake Sarjeant

Posted on

Day 2/100 (#100daysofcode)

Hi everyone! Welcome back to #100daysofcode.

Today, created a signup form:

Signup Form
Note that I have disabled the "logout" button in the top right corner for this page

When the user submits the form, the server first checks whether the username is taken. If it is, the app shows a small red message below the username field, saying that the username is taken. If it isn't, the server hashes the password using bcrypt and then stores it in the database's "users" table. When the form is submitted successfully, the server will redirect to "/login". I'll create that page tomorrow.

Again, if you like this, then please let me know by liking this. If you have any suggestions, remember to comment those, too!

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.