Closed codelinq closed 9 years ago
The solution for this would be to add some route middleware in the Angular routing to check if a user is already logged in.
You could also use the same approach we've used in the code with the httpInterceptor. Check if a user is logged in there and prevent them from visiting the login page.
This tutorial has some good (but more advanced) routing ideas including middleware: http://www.frederiknakstad.com/2013/08/04/authentication-in-single-page-applications-with-angular-js-part-2/
To recreate the issue follow these steps