ShaastraWebops / Shaastra-2013-Website

12 stars 7 forks source link

Login Required Before Logout #45

Closed anantgirdhar-zz closed 12 years ago

anantgirdhar-zz commented 12 years ago

If a user (I checked with coord) is logged out and he clicks logout again, he is asked to login so that the system can log him out. Instead we should rather check if the user is already logged out and then do nothing except the final redirect.

One way to simulate the problem:

  1. Login as a coord
  2. Logout
  3. Press the back button
  4. Click logout You will then be asked to login and once you login, you will be logged out.
suraj93 commented 12 years ago

Fixed. If he presses the back, he can still access the page. On pressing logout he is redircted to home ( irrespective of whther or not he was logged in ) , for any other link, redirected to login. Check and I'll close if it works properly