{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2386","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2386/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2386/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2386/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/2386","id":118360782,"number":2386,"title":"Cached account data should be force loading on main page ???","user":{"login":"xjiaoyang","id":728884,"avatar_url":"https://avatars.githubusercontent.com/u/728884?v=3","gravatar_id":"","url":"https://api.github.com/users/xjiaoyang","html_url":"https://github.com/xjiaoyang","followers_url":"https://api.github.com/users/xjiaoyang/followers","following_url":"https://api.github.com/users/xjiaoyang/following{/other_user}","gists_url":"https://api.github.com/users/xjiaoyang/gists{/gist_id}","starred_url":"https://api.github.com/users/xjiaoyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xjiaoyang/subscriptions","organizations_url":"https://api.github.com/users/xjiaoyang/orgs","repos_url":"https://api.github.com/users/xjiaoyang/repos","events_url":"https://api.github.com/users/xjiaoyang/events{/privacy}","received_events_url":"https://api.github.com/users/xjiaoyang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-23T11:16:07Z","updated_at":"2015-12-04T14:17:38Z","closed_at":null,"body":"i dont think this a very serious issue!!!\r\n\r\nUSING V2.23.1, Java 8, MySQL\r\n\r\nhere is how to reproduce：\r\n`login(any account)` --> `go to settings page(maybe: http://127.0.0.1:8080/#/settings)` --> `change first name or the last name` --> `do not save` --> `redirect to main page(usually: http://127.0.0.1:8080/#/)`\r\n\r\nand you see the account.userName and account.lastName is the value you set up on settings page without save to server.\r\n\r\nthere is a very easy way to fix this issue:\r\nnavigate to `/scripts/app/main/main.controller.js` at line (about) 5, change `Principal.identity()` to `Principal.identity(true)`  to force loading account data,  problem solved.\r\n\r\nmaybe this issue is come out of the WHOLE JH-SYSTEM design, and normally just be fine even ignore it. NO BIG DEAL."},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/161978173","html_url":"https://github.com/jhipster/generator-jhipster/issues/2386#issuecomment-161978173","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2386","id":161978173,"user":{"login":"xjiaoyang","id":728884,"avatar_url":"https://avatars.githubusercontent.com/u/728884?v=3","gravatar_id":"","url":"https://api.github.com/users/xjiaoyang","html_url":"https://github.com/xjiaoyang","followers_url":"https://api.github.com/users/xjiaoyang/followers","following_url":"https://api.github.com/users/xjiaoyang/following{/other_user}","gists_url":"https://api.github.com/users/xjiaoyang/gists{/gist_id}","starred_url":"https://api.github.com/users/xjiaoyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xjiaoyang/subscriptions","organizations_url":"https://api.github.com/users/xjiaoyang/orgs","repos_url":"https://api.github.com/users/xjiaoyang/repos","events_url":"https://api.github.com/users/xjiaoyang/events{/privacy}","received_events_url":"https://api.github.com/users/xjiaoyang/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T14:17:38Z","updated_at":"2015-12-04T14:17:38Z","body":"@Vaelyr that make sense! maybe i will make a PR later."}}