uprm-inso4101-2023-2024-s2 / semester-project-rumaradoptionapp

semester-project-rumaradoptionapp created by GitHub Classroom
5 stars 0 forks source link

Login session #237

Closed Javi510348 closed 7 months ago

Javi510348 commented 7 months ago

In this pull request, we are asking to merge the section of code responsible of creating a user session and saving the user_id once the user completes the login process. The NodeJs module used is "express-session".

Another thing done, is that I created a function in "index.js" called Authentication in which it will be responsible of checking if the user is logged in or not, if the user is not logged in it will redirect the user to the login page. This way we are going to ensure that the user would not access anything that he is not supposed to.

If you have any questions please, let me know.