Hi everyone! Welcome back to #100daysofcode.
Today, created a signup form:
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!