{"action":"created","comment":{"url":"https://api.github.com/repos/juliancoleman/vigor-app/pulls/comments/61663516","id":61663516,"diff_hunk":"@@ -4,30 +4,45 @@\n from .forms import UserCreationFormExtended\n from django.contrib.auth import authenticate\n from django.contrib.auth import login as auth_login\n-\n-\n from django.views.decorators.csrf import csrf_exempt\n+from .models import User\n \n def index(request):\n     template = loader.get_template(\"vigor/index.html\")\n     context = {}\n     return HttpResponse(template.render(context, request))\n \n def login(request):\n-    return HttpResponse(\"Login Page.\")\n+    if request.user.is_authenticated():\n+        return HttpResponseRedirect(\"/vigor/dashboard\")","path":"vigor/views.py","position":17,"original_position":17,"commit_id":"5b026842f3263abe20a4972ca9f398fb365065df","original_commit_id":"5b026842f3263abe20a4972ca9f398fb365065df","user":{"login":"jadengore","id":1921464,"avatar_url":"https://avatars.githubusercontent.com/u/1921464?v=3","gravatar_id":"","url":"https://api.github.com/users/jadengore","html_url":"https://github.com/jadengore","followers_url":"https://api.github.com/users/jadengore/followers","following_url":"https://api.github.com/users/jadengore/following{/other_user}","gists_url":"https://api.github.com/users/jadengore/gists{/gist_id}","starred_url":"https://api.github.com/users/jadengore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jadengore/subscriptions","organizations_url":"https://api.github.com/users/jadengore/orgs","repos_url":"https://api.github.com/users/jadengore/repos","events_url":"https://api.github.com/users/jadengore/events{/privacy}","received_events_url":"https://api.github.com/users/jadengore/received_events","type":"User","site_admin":false},"body":"@juliancoleman 👏 ","created_at":"2016-04-30T02:33:03Z","updated_at":"2016-04-30T02:33:04Z","html_url":"https://github.com/juliancoleman/vigor-app/pull/8#discussion_r61663516","pull_request_url":"https://api.github.com/repos/juliancoleman/vigor-app/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/juliancoleman/vigor-app/pulls/comments/61663516"},"html":{"href":"https://github.com/juliancoleman/vigor-app/pull/8#discussion_r61663516"},"pull_request":{"href":"https://api.github.com/repos/juliancoleman/vigor-app/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/juliancoleman/vigor-app/pulls/8","id":68454467,"html_url":"https://github.com/juliancoleman/vigor-app/pull/8","diff_url":"https://github.com/juliancoleman/vigor-app/pull/8.diff","patch_url":"https://github.com/juliancoleman/vigor-app/pull/8.patch","issue_url":"https://api.github.com/repos/juliancoleman/vigor-app/issues/8","number":8,"state":"open","locked":false,"title":"Feature/login","user":{"login":"juliancoleman","id":11545939,"avatar_url":"https://avatars.githubusercontent.com/u/11545939?v=3","gravatar_id":"","url":"https://api.github.com/users/juliancoleman","html_url":"https://github.com/juliancoleman","followers_url":"https://api.github.com/users/juliancoleman/followers","following_url":"https://api.github.com/users/juliancoleman/following{/other_user}","gists_url":"https://api.github.com/users/juliancoleman/gists{/gist_id}","starred_url":"https://api.github.com/users/juliancoleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliancoleman/subscriptions","organizations_url":"https://api.github.com/users/juliancoleman/orgs","repos_url":"https://api.github.com/users/juliancoleman/repos","events_url":"https://api.github.com/users/juliancoleman/events{/privacy}","received_events_url":"https://api.github.com/users/juliancoleman/received_events","type":"User","site_admin":false},"body":"fixes #3. users may authenticate; checks to see if user is logged in to prevent visiting `/login` or `/signup` when already logged in\r\n\r\n@jadengore this is looking really amazing so far!","created_at":"2016-04-30T02:07:19Z","updated_at":"2016-04-30T02:33:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd2b52b623836d465a21e144209c1c39d8b98374","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/juliancoleman/vigor-app/pulls/8/commits","review_comments_url":"https://api.github.com/repos/juliancoleman/vigor-app/pulls/8/comments","review_comment_url":"https://api.github.com/repos/juliancoleman/vigor-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/juliancoleman/vigor-app/issues/8/comments","statuses_url":"https://api.github.com/repos/juliancoleman/vigor-app/statuses/5b026842f3263abe20a4972ca9f398fb365065df","head":{"label":"juliancoleman:feature/login","ref":"feature/login","sha":"5b026842f3263abe20a4972ca9f398fb365065df","user":{"login":"juliancoleman","id":11545939,"avatar_url":"https://avatars.githubusercontent.com/u/11545939?v=3","gravatar_id":"","url":"https://api.github.com/users/juliancoleman","html_url":"https://github.com/juliancoleman","followers_url":"https://api.github.com/users/juliancoleman/followers","following_url":"https://api.github.com/users/juliancoleman/following{/other_user}","gists_url":"https://api.github.com/users/juliancoleman/gists{/gist_id}","starred_url":"https://api.github.com/users/juliancoleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliancoleman/subscriptions","organizations_url":"https://api.github.com/users/juliancoleman/orgs","repos_url":"https://api.github.com/users/juliancoleman/repos","events_url":"https://api.github.com/users/juliancoleman/events{/privacy}","received_events_url":"https://api.github.com/users/juliancoleman/received_events","type":"User","site_admin":false},"repo":{"id":57019835,"name":"vigor-app","full_name":"juliancoleman/vigor-app","owner":{"login":"juliancoleman","id":11545939,"avatar_url":"https://avatars.githubusercontent.com/u/11545939?v=3","gravatar_id":"","url":"https://api.github.com/users/juliancoleman","html_url":"https://github.com/juliancoleman","followers_url":"https://api.github.com/users/juliancoleman/followers","following_url":"https://api.github.com/users/juliancoleman/following{/other_user}","gists_url":"https://api.github.com/users/juliancoleman/gists{/gist_id}","starred_url":"https://api.github.com/users/juliancoleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliancoleman/subscriptions","organizations_url":"https://api.github.com/users/juliancoleman/orgs","repos_url":"https://api.github.com/users/juliancoleman/repos","events_url":"https://api.github.com/users/juliancoleman/events{/privacy}","received_events_url":"https://api.github.com/users/juliancoleman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/juliancoleman/vigor-app","description":"","fork":false,"url":"https://api.github.com/repos/juliancoleman/vigor-app","forks_url":"https://api.github.com/repos/juliancoleman/vigor-app/forks","keys_url":"https://api.github.com/repos/juliancoleman/vigor-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juliancoleman/vigor-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juliancoleman/vigor-app/teams","hooks_url":"https://api.github.com/repos/juliancoleman/vigor-app/hooks","issue_events_url":"https://api.github.com/repos/juliancoleman/vigor-app/issues/events{/number}","events_url":"https://api.github.com/repos/juliancoleman/vigor-app/events","assignees_url":"https://api.github.com/repos/juliancoleman/vigor-app/assignees{/user}","branches_url":"https://api.github.com/repos/juliancoleman/vigor-app/branches{/branch}","tags_url":"https://api.github.com/repos/juliancoleman/vigor-app/tags","blobs_url":"https://api.github.com/repos/juliancoleman/vigor-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juliancoleman/vigor-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juliancoleman/vigor-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/juliancoleman/vigor-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juliancoleman/vigor-app/statuses/{sha}","languages_url":"https://api.github.com/repos/juliancoleman/vigor-app/languages","stargazers_url":"https://api.github.com/repos/juliancoleman/vigor-app/stargazers","contributors_url":"https://api.github.com/repos/juliancoleman/vigor-app/contributors","subscribers_url":"https://api.github.com/repos/juliancoleman/vigor-app/subscribers","subscription_url":"https://api.github.com/repos/juliancoleman/vigor-app/subscription","commits_url":"https://api.github.com/repos/juliancoleman/vigor-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/juliancoleman/vigor-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/juliancoleman/vigor-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/juliancoleman/vigor-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/juliancoleman/vigor-app/contents/{+path}","compare_url":"https://api.github.com/repos/juliancoleman/vigor-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juliancoleman/vigor-app/merges","archive_url":"https://api.github.com/repos/juliancoleman/vigor-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juliancoleman/vigor-app/downloads","issues_url":"https://api.github.com/repos/juliancoleman/vigor-app/issues{/number}","pulls_url":"https://api.github.com/repos/juliancoleman/vigor-app/pulls{/number}","milestones_url":"https://api.github.com/repos/juliancoleman/vigor-app/milestones{/number}","notifications_url":"https://api.github.com/repos/juliancoleman/vigor-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juliancoleman/vigor-app/labels{/name}","releases_url":"https://api.github.com/repos/juliancoleman/vigor-app/releases{/id}","deployments_url":"https://api.github.com/repos/juliancoleman/vigor-app/deployments","created_at":"2016-04-25T07:15:25Z","updated_at":"2016-04-25T07:29:26Z","pushed_at":"2016-04-30T02:07:19Z","git_url":"git://github.com/juliancoleman/vigor-app.git","ssh_url":"git@github.com:juliancoleman/vigor-app.git","clone_url":"https://github.com/juliancoleman/vigor-app.git","svn_url":"https://github.com/juliancoleman/vigor-app","homepage":null,"size":25,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"juliancoleman:master","ref":"master","sha":"8dae3fd6f34aee799facefd258e4e2fb0f69466f","user":{"login":"juliancoleman","id":11545939,"avatar_url":"https://avatars.githubusercontent.com/u/11545939?v=3","gravatar_id":"","url":"https://api.github.com/users/juliancoleman","html_url":"https://github.com/juliancoleman","followers_url":"https://api.github.com/users/juliancoleman/followers","following_url":"https://api.github.com/users/juliancoleman/following{/other_user}","gists_url":"https://api.github.com/users/juliancoleman/gists{/gist_id}","starred_url":"https://api.github.com/users/juliancoleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliancoleman/subscriptions","organizations_url":"https://api.github.com/users/juliancoleman/orgs","repos_url":"https://api.github.com/users/juliancoleman/repos","events_url":"https://api.github.com/users/juliancoleman/events{/privacy}","received_events_url":"https://api.github.com/users/juliancoleman/received_events","type":"User","site_admin":false},"repo":{"id":57019835,"name":"vigor-app","full_name":"juliancoleman/vigor-app","owner":{"login":"juliancoleman","id":11545939,"avatar_url":"https://avatars.githubusercontent.com/u/11545939?v=3","gravatar_id":"","url":"https://api.github.com/users/juliancoleman","html_url":"https://github.com/juliancoleman","followers_url":"https://api.github.com/users/juliancoleman/followers","following_url":"https://api.github.com/users/juliancoleman/following{/other_user}","gists_url":"https://api.github.com/users/juliancoleman/gists{/gist_id}","starred_url":"https://api.github.com/users/juliancoleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliancoleman/subscriptions","organizations_url":"https://api.github.com/users/juliancoleman/orgs","repos_url":"https://api.github.com/users/juliancoleman/repos","events_url":"https://api.github.com/users/juliancoleman/events{/privacy}","received_events_url":"https://api.github.com/users/juliancoleman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/juliancoleman/vigor-app","description":"","fork":false,"url":"https://api.github.com/repos/juliancoleman/vigor-app","forks_url":"https://api.github.com/repos/juliancoleman/vigor-app/forks","keys_url":"https://api.github.com/repos/juliancoleman/vigor-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juliancoleman/vigor-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juliancoleman/vigor-app/teams","hooks_url":"https://api.github.com/repos/juliancoleman/vigor-app/hooks","issue_events_url":"https://api.github.com/repos/juliancoleman/vigor-app/issues/events{/number}","events_url":"https://api.github.com/repos/juliancoleman/vigor-app/events","assignees_url":"https://api.github.com/repos/juliancoleman/vigor-app/assignees{/user}","branches_url":"https://api.github.com/repos/juliancoleman/vigor-app/branches{/branch}","tags_url":"https://api.github.com/repos/juliancoleman/vigor-app/tags","blobs_url":"https://api.github.com/repos/juliancoleman/vigor-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juliancoleman/vigor-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juliancoleman/vigor-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/juliancoleman/vigor-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juliancoleman/vigor-app/statuses/{sha}","languages_url":"https://api.github.com/repos/juliancoleman/vigor-app/languages","stargazers_url":"https://api.github.com/repos/juliancoleman/vigor-app/stargazers","contributors_url":"https://api.github.com/repos/juliancoleman/vigor-app/contributors","subscribers_url":"https://api.github.com/repos/juliancoleman/vigor-app/subscribers","subscription_url":"https://api.github.com/repos/juliancoleman/vigor-app/subscription","commits_url":"https://api.github.com/repos/juliancoleman/vigor-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/juliancoleman/vigor-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/juliancoleman/vigor-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/juliancoleman/vigor-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/juliancoleman/vigor-app/contents/{+path}","compare_url":"https://api.github.com/repos/juliancoleman/vigor-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juliancoleman/vigor-app/merges","archive_url":"https://api.github.com/repos/juliancoleman/vigor-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juliancoleman/vigor-app/downloads","issues_url":"https://api.github.com/repos/juliancoleman/vigor-app/issues{/number}","pulls_url":"https://api.github.com/repos/juliancoleman/vigor-app/pulls{/number}","milestones_url":"https://api.github.com/repos/juliancoleman/vigor-app/milestones{/number}","notifications_url":"https://api.github.com/repos/juliancoleman/vigor-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juliancoleman/vigor-app/labels{/name}","releases_url":"https://api.github.com/repos/juliancoleman/vigor-app/releases{/id}","deployments_url":"https://api.github.com/repos/juliancoleman/vigor-app/deployments","created_at":"2016-04-25T07:15:25Z","updated_at":"2016-04-25T07:29:26Z","pushed_at":"2016-04-30T02:07:19Z","git_url":"git://github.com/juliancoleman/vigor-app.git","ssh_url":"git@github.com:juliancoleman/vigor-app.git","clone_url":"https://github.com/juliancoleman/vigor-app.git","svn_url":"https://github.com/juliancoleman/vigor-app","homepage":null,"size":25,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/juliancoleman/vigor-app/pulls/8"},"html":{"href":"https://github.com/juliancoleman/vigor-app/pull/8"},"issue":{"href":"https://api.github.com/repos/juliancoleman/vigor-app/issues/8"},"comments":{"href":"https://api.github.com/repos/juliancoleman/vigor-app/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/juliancoleman/vigor-app/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/juliancoleman/vigor-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/juliancoleman/vigor-app/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/juliancoleman/vigor-app/statuses/5b026842f3263abe20a4972ca9f398fb365065df"}}}}