philipsorst / angular-rest-springsecurity

An example AngularJS Application that uses a Spring Security protected Jersey REST backend based on Hibernate/JPA
Apache License 2.0
620 stars 367 forks source link

No logged in user info after refresh #4

Closed hershs closed 10 years ago

hershs commented 10 years ago

Hi,

After login I can see user->Logout menu in top-right side. When I refresh the page the menu disappears. How can I solve it?

Thank you

P.S. Probably it may be solved by $rootScope.user = user; after getting user from the cookie, app.js, line 89

philipsorst commented 10 years ago

You were right, I forgot to set the user if reloaded from cookie.