gcivil-nyu-org / wed-fall24-team3

2 stars 0 forks source link

[Bug] Able to access login url and signup url even after logging in #134

Closed TekuriSaiAkhil closed 1 week ago

TekuriSaiAkhil commented 2 weeks ago

Description: Able to access login url even after logging in.

Steps to Reproduce:

  1. log in as a user -> after login -> goes to user dashboard
  2. Access login page: http://eventsphere-env2.eba-garccznv.us-west-2.elasticbeanstalk.com/events/login/
  3. Access signup page: http://eventsphere-env2.eba-garccznv.us-west-2.elasticbeanstalk.com/events/signup/
  4. login/signup again!!

Expected Behavior: Shouldn't allow access to login page/register page or "/" path after user login. Ideally, users should be redirected to the respective dashboards if they hit the login/register urls

simarmehta commented 1 week ago

Yes this shouldn't be allowed it should redirect to home page