tyrakriv / Spring307-8amMWF-Team2

0 stars 0 forks source link

Prevent anonymous access to homepage #67

Closed blaxson closed 4 years ago

blaxson commented 4 years ago

TODO

add functionality to prevent anonymous users from accessing homepage.

Estimated Cost / Time:

Small / Medium

Measure of Success

An effective measure of success is for logged in users to be able to access /homepage route but not anonymous users. Also, if logged in users try to access login or register, they should be redirected to /homepage. We can test this by having an anonymous user type in /homepage url and attempt to access it. This should then redirect the user to the login page. We can also have a logged in user attempt to type in /register url and be redirected to homepage.