SebasMelendez / labcheck

System for lab equipment checkin and checkout
0 stars 0 forks source link

Created user session, conditionally rendered elements, and authentication middleware #21

Closed dopecello closed 2 years ago

dopecello commented 2 years ago

User now has a session where they are logged in and parse info to site.

Rendered logout button when signed in and created logic to destroy session

Created withAuth middleware so that non-logged-in user cannot roam around the site or hardcode a url without logging in. (please report in corresponding issue if patch is required)