{"action":"created","issue":{"url":"https://api.github.com/repos/fhstp-mfg/mobilot/issues/107","repository_url":"https://api.github.com/repos/fhstp-mfg/mobilot","labels_url":"https://api.github.com/repos/fhstp-mfg/mobilot/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/fhstp-mfg/mobilot/issues/107/comments","events_url":"https://api.github.com/repos/fhstp-mfg/mobilot/issues/107/events","html_url":"https://github.com/fhstp-mfg/mobilot/issues/107","id":175225438,"number":107,"title":"Menu Admin area not shown after logout/login","user":{"login":"miclaus","id":4658706,"avatar_url":"https://avatars.githubusercontent.com/u/4658706?v=3","gravatar_id":"","url":"https://api.github.com/users/miclaus","html_url":"https://github.com/miclaus","followers_url":"https://api.github.com/users/miclaus/followers","following_url":"https://api.github.com/users/miclaus/following{/other_user}","gists_url":"https://api.github.com/users/miclaus/gists{/gist_id}","starred_url":"https://api.github.com/users/miclaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miclaus/subscriptions","organizations_url":"https://api.github.com/users/miclaus/orgs","repos_url":"https://api.github.com/users/miclaus/repos","events_url":"https://api.github.com/users/miclaus/events{/privacy}","received_events_url":"https://api.github.com/users/miclaus/received_events","type":"User","site_admin":false},"labels":[{"id":396745515,"url":"https://api.github.com/repos/fhstp-mfg/mobilot/labels/bug","name":"bug","color":"ee0701","default":true},{"id":407569161,"url":"https://api.github.com/repos/fhstp-mfg/mobilot/labels/high%20priority","name":"high priority","color":"5319E7","default":false}],"state":"closed","locked":false,"assignee":{"login":"miclaus","id":4658706,"avatar_url":"https://avatars.githubusercontent.com/u/4658706?v=3","gravatar_id":"","url":"https://api.github.com/users/miclaus","html_url":"https://github.com/miclaus","followers_url":"https://api.github.com/users/miclaus/followers","following_url":"https://api.github.com/users/miclaus/following{/other_user}","gists_url":"https://api.github.com/users/miclaus/gists{/gist_id}","starred_url":"https://api.github.com/users/miclaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miclaus/subscriptions","organizations_url":"https://api.github.com/users/miclaus/orgs","repos_url":"https://api.github.com/users/miclaus/repos","events_url":"https://api.github.com/users/miclaus/events{/privacy}","received_events_url":"https://api.github.com/users/miclaus/received_events","type":"User","site_admin":false},"assignees":[{"login":"miclaus","id":4658706,"avatar_url":"https://avatars.githubusercontent.com/u/4658706?v=3","gravatar_id":"","url":"https://api.github.com/users/miclaus","html_url":"https://github.com/miclaus","followers_url":"https://api.github.com/users/miclaus/followers","following_url":"https://api.github.com/users/miclaus/following{/other_user}","gists_url":"https://api.github.com/users/miclaus/gists{/gist_id}","starred_url":"https://api.github.com/users/miclaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miclaus/subscriptions","organizations_url":"https://api.github.com/users/miclaus/orgs","repos_url":"https://api.github.com/users/miclaus/repos","events_url":"https://api.github.com/users/miclaus/events{/privacy}","received_events_url":"https://api.github.com/users/miclaus/received_events","type":"User","site_admin":false},{"login":"doomsayer2","id":13848511,"avatar_url":"https://avatars.githubusercontent.com/u/13848511?v=3","gravatar_id":"","url":"https://api.github.com/users/doomsayer2","html_url":"https://github.com/doomsayer2","followers_url":"https://api.github.com/users/doomsayer2/followers","following_url":"https://api.github.com/users/doomsayer2/following{/other_user}","gists_url":"https://api.github.com/users/doomsayer2/gists{/gist_id}","starred_url":"https://api.github.com/users/doomsayer2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doomsayer2/subscriptions","organizations_url":"https://api.github.com/users/doomsayer2/orgs","repos_url":"https://api.github.com/users/doomsayer2/repos","events_url":"https://api.github.com/users/doomsayer2/events{/privacy}","received_events_url":"https://api.github.com/users/doomsayer2/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/fhstp-mfg/mobilot/milestones/7","html_url":"https://github.com/fhstp-mfg/mobilot/milestone/7","labels_url":"https://api.github.com/repos/fhstp-mfg/mobilot/milestones/7/labels","id":2019421,"number":7,"title":"v1.1","description":"","creator":{"login":"miclaus","id":4658706,"avatar_url":"https://avatars.githubusercontent.com/u/4658706?v=3","gravatar_id":"","url":"https://api.github.com/users/miclaus","html_url":"https://github.com/miclaus","followers_url":"https://api.github.com/users/miclaus/followers","following_url":"https://api.github.com/users/miclaus/following{/other_user}","gists_url":"https://api.github.com/users/miclaus/gists{/gist_id}","starred_url":"https://api.github.com/users/miclaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miclaus/subscriptions","organizations_url":"https://api.github.com/users/miclaus/orgs","repos_url":"https://api.github.com/users/miclaus/repos","events_url":"https://api.github.com/users/miclaus/events{/privacy}","received_events_url":"https://api.github.com/users/miclaus/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":14,"state":"open","created_at":"2016-09-21T14:28:19Z","updated_at":"2016-12-15T00:00:28Z","due_on":"2016-12-16T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-09-06T11:38:10Z","updated_at":"2016-12-15T00:00:28Z","closed_at":"2016-12-15T00:00:28Z","body":""},"comment":{"url":"https://api.github.com/repos/fhstp-mfg/mobilot/issues/comments/267195292","html_url":"https://github.com/fhstp-mfg/mobilot/issues/107#issuecomment-267195292","issue_url":"https://api.github.com/repos/fhstp-mfg/mobilot/issues/107","id":267195292,"user":{"login":"miclaus","id":4658706,"avatar_url":"https://avatars.githubusercontent.com/u/4658706?v=3","gravatar_id":"","url":"https://api.github.com/users/miclaus","html_url":"https://github.com/miclaus","followers_url":"https://api.github.com/users/miclaus/followers","following_url":"https://api.github.com/users/miclaus/following{/other_user}","gists_url":"https://api.github.com/users/miclaus/gists{/gist_id}","starred_url":"https://api.github.com/users/miclaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miclaus/subscriptions","organizations_url":"https://api.github.com/users/miclaus/orgs","repos_url":"https://api.github.com/users/miclaus/repos","events_url":"https://api.github.com/users/miclaus/events{/privacy}","received_events_url":"https://api.github.com/users/miclaus/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T00:00:28Z","updated_at":"2016-12-15T00:00:28Z","body":"### Commit 6903f21\r\n\r\nThis solves a **hard to find** issue related to this one. \r\n\r\nIt doesn't fix the menu problem though – **still have to refresh after login / logout**.\r\n\r\nThe problem was with some code logic within the `login` method. I'm not exactly sure what the code does, but it seems like the code was intended to copy/transfer everything a guest user has created, such as Mobiduls, Stations and Attachments, whilst using a guest account to a registered account, after which the guest account would have been deleted. \r\n\r\nNow after logging out, the server doesn't recreate a new guest user like it usually does in the `User@getOrCreateGuest` model method. This would result in not passing the `if ($guest)` condition and thus would have returned `wrong` after an already successful login attempt a few lines above `Auth::attempt($credentials, true)`.\r\n\r\nWe're getting near !"}}
{"actor":{"display_login":"miclaus"}}