0x3F-Lab / love-letters

Agile Web Dev Project
4 stars 0 forks source link

Set up log in system using flask #30

Closed Mitan4E closed 2 months ago

Mitan4E commented 2 months ago

I've added a sign-up and login feature to our site. Now users can sign up directly from the homepage using a modal popup. They fill in their details, and once they hit submit, their info is stored securely in our database. They've got the option to share their gender and social links, but no pressure—it's all optional.

For returning users, they enter their email and password into the login modal popup, and if all's good, they're taken straight to their account. If something's off, they'll get a flash message letting them know what's up (flash messages appear both for success and non-success).

We're hashing passwords for security, and all the user details are stored in the database (connect_hearts.db). When users log in, we keep track of their session so the site stays personalized for them (done using the flask import session).

To do:

AkhilG4 commented 2 months ago

Amazing work Martin. I am easily able to create an account and able to log in. Like how you've already added if an email already exists.

Suggestions:

I will try and work on updating the header once the user has logged in successfully

AkhilG4 commented 2 months ago

I have simply made it so that once the user is logged in:

I have not added any sanitisaion yet

Connor2803 commented 2 months ago

Looks good and works great! Created a user with my email and password123 and everything works perfectly. Good work guys.