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.
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.