LetsLunch / lunch

Other
38 stars 3 forks source link

Prevent login state for logged in users #19

Closed zzmp closed 10 years ago

zzmp commented 10 years ago

This redirects users who are already logged in ($window.sessionStorage['fbtoken']) from accessing the login state, redirecting them instead to their profile. It will prevent mobile applications from reaching login with the home or back buttons.