The goal here is to only let people use the site if they have an account. Currently, you can edit the url and add /escaperoom and just get in. I want to change that.
[x] Redirect the user to the login page if there is no 'name' in local storage when any page is loaded (30 min)
The goal here is to only let people use the site if they have an account. Currently, you can edit the url and add /escaperoom and just get in. I want to change that.
Total time: 30 minutes