Firstly, the "image bug" when looking at reviews a user has posted (in user-reviews.ejs) is fixed
I changed the input type on all password fields to "password", so the password will be seen as "starred out" when signing up and logging in (it's not starred out on the profile update page though, so a user can see their current password and optionally update it):
When a user tries to sign in with an email that's already registered to a different account, this alert will show up:
Added database documentation (excluding the logs table for now.. will update once I've finished that part up)
Updated the app.post('/profile') route so that a user can update their username, name, password, nothing, or any combination of the three with no errors. An alert will appear if they try to change their username to a username already registered in the database. This route will likely need a lot of refactoring as it is not very readable right now. I'd like another pair of eyes on it to help later
What's in This PR:
Firstly, the "image bug" when looking at reviews a user has posted (in user-reviews.ejs) is fixed
I changed the input type on all password fields to "password", so the password will be seen as "starred out" when signing up and logging in (it's not starred out on the profile update page though, so a user can see their current password and optionally update it):
When a user tries to sign in with an email that's already registered to a different account, this alert will show up:
Added database documentation (excluding the logs table for now.. will update once I've finished that part up)
Updated the app.post('/profile') route so that a user can update their username, name, password, nothing, or any combination of the three with no errors. An alert will appear if they try to change their username to a username already registered in the database. This route will likely need a lot of refactoring as it is not very readable right now. I'd like another pair of eyes on it to help later