{"action":"created","issue":{"url":"https://api.github.com/repos/aptible/dashboard.aptible.com/issues/646","repository_url":"https://api.github.com/repos/aptible/dashboard.aptible.com","labels_url":"https://api.github.com/repos/aptible/dashboard.aptible.com/issues/646/labels{/name}","comments_url":"https://api.github.com/repos/aptible/dashboard.aptible.com/issues/646/comments","events_url":"https://api.github.com/repos/aptible/dashboard.aptible.com/issues/646/events","html_url":"https://github.com/aptible/dashboard.aptible.com/pull/646","id":164832326,"number":646,"title":"Add no organization error page","user":{"login":"krallin","id":1737686,"avatar_url":"https://avatars.githubusercontent.com/u/1737686?v=3","gravatar_id":"","url":"https://api.github.com/users/krallin","html_url":"https://github.com/krallin","followers_url":"https://api.github.com/users/krallin/followers","following_url":"https://api.github.com/users/krallin/following{/other_user}","gists_url":"https://api.github.com/users/krallin/gists{/gist_id}","starred_url":"https://api.github.com/users/krallin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krallin/subscriptions","organizations_url":"https://api.github.com/users/krallin/orgs","repos_url":"https://api.github.com/users/krallin/repos","events_url":"https://api.github.com/users/krallin/events{/privacy}","received_events_url":"https://api.github.com/users/krallin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-11T13:05:45Z","updated_at":"2016-07-11T16:50:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aptible/dashboard.aptible.com/pulls/646","html_url":"https://github.com/aptible/dashboard.aptible.com/pull/646","diff_url":"https://github.com/aptible/dashboard.aptible.com/pull/646.diff","patch_url":"https://github.com/aptible/dashboard.aptible.com/pull/646.patch"},"body":"When a user attempts to log in without being a member of an\r\norganization, we currently throw a `TypeError`, which is problematic for\r\na few reasons:\r\n\r\n- First, it doesn't let the user log out (without manually deleting\r\n  cookies), which is bad from a security standpoint (they might not even\r\n  realize they're still logged in).\r\n- Second, it's very confusing: it's very unclear why they're receiving a\r\n  `TypeError`. In practice this shouldn't happen very often, but it\r\n  *can* happen if a user attempts to verify their email before accepting\r\n  an invitation (aptible/auth.aptible.com#225 is\r\n  evidence that some people do), in which case we should send them back\r\n  on the happy path, i.e. tell them to accept the invitation.\r\n- Third, it might start happening more often if / when we let users\r\n  remove other users from their organization\r\n  (#642,\r\n  #641)\r\n\r\nObligatory screenshot: \r\n\r\n![image](https://cloud.githubusercontent.com/assets/1737686/16731523/d4c64022-4778-11e6-98fb-df48f964e056.png)\r\n\r\nIt's not *super* sexy, but I think it works. I'm a little bit concerned about that grey on grey being a little toned down (but that's arguably a problem for error pages?). Let me know what you think.\r\n\r\n\r\n--\r\n\r\ncc @fancyremarker @sandersonet @gib \r\nalso, cc @wcpines, this should make the \"accept-invitation\" flow more foolproof. "},"comment":{"url":"https://api.github.com/repos/aptible/dashboard.aptible.com/issues/comments/231793954","html_url":"https://github.com/aptible/dashboard.aptible.com/pull/646#issuecomment-231793954","issue_url":"https://api.github.com/repos/aptible/dashboard.aptible.com/issues/646","id":231793954,"user":{"login":"wcpines","id":11494834,"avatar_url":"https://avatars.githubusercontent.com/u/11494834?v=3","gravatar_id":"","url":"https://api.github.com/users/wcpines","html_url":"https://github.com/wcpines","followers_url":"https://api.github.com/users/wcpines/followers","following_url":"https://api.github.com/users/wcpines/following{/other_user}","gists_url":"https://api.github.com/users/wcpines/gists{/gist_id}","starred_url":"https://api.github.com/users/wcpines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wcpines/subscriptions","organizations_url":"https://api.github.com/users/wcpines/orgs","repos_url":"https://api.github.com/users/wcpines/repos","events_url":"https://api.github.com/users/wcpines/events{/privacy}","received_events_url":"https://api.github.com/users/wcpines/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T16:50:23Z","updated_at":"2016-07-11T16:50:23Z","body":"Big improvement!"}}
{"actor":{"display_login":"wcpines"}}