{"action":"created","issue":{"url":"https://api.github.com/repos/healthchecks/healthchecks/issues/14","labels_url":"https://api.github.com/repos/healthchecks/healthchecks/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/healthchecks/healthchecks/issues/14/comments","events_url":"https://api.github.com/repos/healthchecks/healthchecks/issues/14/events","html_url":"https://github.com/healthchecks/healthchecks/pull/14","id":119280607,"number":14,"title":"redirect already logged in user","user":{"login":"diwu1989","id":380950,"avatar_url":"https://avatars.githubusercontent.com/u/380950?v=3","gravatar_id":"","url":"https://api.github.com/users/diwu1989","html_url":"https://github.com/diwu1989","followers_url":"https://api.github.com/users/diwu1989/followers","following_url":"https://api.github.com/users/diwu1989/following{/other_user}","gists_url":"https://api.github.com/users/diwu1989/gists{/gist_id}","starred_url":"https://api.github.com/users/diwu1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diwu1989/subscriptions","organizations_url":"https://api.github.com/users/diwu1989/orgs","repos_url":"https://api.github.com/users/diwu1989/repos","events_url":"https://api.github.com/users/diwu1989/events{/privacy}","received_events_url":"https://api.github.com/users/diwu1989/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-28T08:36:12Z","updated_at":"2015-12-02T11:56:11Z","closed_at":"2015-12-02T11:56:05Z","pull_request":{"url":"https://api.github.com/repos/healthchecks/healthchecks/pulls/14","html_url":"https://github.com/healthchecks/healthchecks/pull/14","diff_url":"https://github.com/healthchecks/healthchecks/pull/14.diff","patch_url":"https://github.com/healthchecks/healthchecks/pull/14.patch"},"body":"If the user is already logged in, and then click the login email again, they get hit with this:\r\n![image](https://cloud.githubusercontent.com/assets/380950/11450960/f6543ff0-9567-11e5-8554-9fc589807f49.png)\r\n\r\nThe reason is that their login token has been reset already, but they do have a valid session at the moment.\r\n\r\nCorrect behavior is to redirect the user to the checks screen instead.\r\n\r\nand a small perf change that I saw while reading through the code"},"comment":{"url":"https://api.github.com/repos/healthchecks/healthchecks/issues/comments/161271073","html_url":"https://github.com/healthchecks/healthchecks/pull/14#issuecomment-161271073","issue_url":"https://api.github.com/repos/healthchecks/healthchecks/issues/14","id":161271073,"user":{"login":"cuu508","id":661859,"avatar_url":"https://avatars.githubusercontent.com/u/661859?v=3","gravatar_id":"","url":"https://api.github.com/users/cuu508","html_url":"https://github.com/cuu508","followers_url":"https://api.github.com/users/cuu508/followers","following_url":"https://api.github.com/users/cuu508/following{/other_user}","gists_url":"https://api.github.com/users/cuu508/gists{/gist_id}","starred_url":"https://api.github.com/users/cuu508/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuu508/subscriptions","organizations_url":"https://api.github.com/users/cuu508/orgs","repos_url":"https://api.github.com/users/cuu508/repos","events_url":"https://api.github.com/users/cuu508/events{/privacy}","received_events_url":"https://api.github.com/users/cuu508/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T11:56:10Z","updated_at":"2015-12-02T11:56:10Z","body":"Looks good, thanks!"}}