{"action":"created","comment":{"url":"https://api.github.com/repos/ElixirCLE/pairmotron/pulls/comments/91105687","pull_request_review_id":11615407,"id":91105687,"diff_hunk":"@@ -41,6 +41,16 @@ defmodule Pairmotron.UserController do\n     user = Repo.get!(User, id)\n     changeset = User.changeset(user, user_params)\n \n+    if current_assigned_user_id(conn) != id && changeset.changes[:password] do","path":"web/controllers/user_controller.ex","position":19,"original_position":19,"commit_id":"8738c051d5f93ca3dccf9118a709139f996bdcac","original_commit_id":"ca3f9ecadc3c8bda5843c9438baa37fed8d5eee4","user":{"login":"mbramson","id":6462927,"avatar_url":"https://avatars.githubusercontent.com/u/6462927?v=3","gravatar_id":"","url":"https://api.github.com/users/mbramson","html_url":"https://github.com/mbramson","followers_url":"https://api.github.com/users/mbramson/followers","following_url":"https://api.github.com/users/mbramson/following{/other_user}","gists_url":"https://api.github.com/users/mbramson/gists{/gist_id}","starred_url":"https://api.github.com/users/mbramson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbramson/subscriptions","organizations_url":"https://api.github.com/users/mbramson/orgs","repos_url":"https://api.github.com/users/mbramson/repos","events_url":"https://api.github.com/users/mbramson/events{/privacy}","received_events_url":"https://api.github.com/users/mbramson/received_events","type":"User","site_admin":false},"body":"I am going to leave this for a separate PR, but you are correct. This should be refactored.","created_at":"2016-12-06T15:49:51Z","updated_at":"2016-12-06T15:49:51Z","html_url":"https://github.com/ElixirCLE/pairmotron/pull/31#discussion_r91105687","pull_request_url":"https://api.github.com/repos/ElixirCLE/pairmotron/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/ElixirCLE/pairmotron/pulls/comments/91105687"},"html":{"href":"https://github.com/ElixirCLE/pairmotron/pull/31#discussion_r91105687"},"pull_request":{"href":"https://api.github.com/repos/ElixirCLE/pairmotron/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/ElixirCLE/pairmotron/pulls/31","id":94904432,"html_url":"https://github.com/ElixirCLE/pairmotron/pull/31","diff_url":"https://github.com/ElixirCLE/pairmotron/pull/31.diff","patch_url":"https://github.com/ElixirCLE/pairmotron/pull/31.patch","issue_url":"https://api.github.com/repos/ElixirCLE/pairmotron/issues/31","number":31,"state":"open","locked":false,"title":"Add user authentication","user":{"login":"mbramson","id":6462927,"avatar_url":"https://avatars.githubusercontent.com/u/6462927?v=3","gravatar_id":"","url":"https://api.github.com/users/mbramson","html_url":"https://github.com/mbramson","followers_url":"https://api.github.com/users/mbramson/followers","following_url":"https://api.github.com/users/mbramson/following{/other_user}","gists_url":"https://api.github.com/users/mbramson/gists{/gist_id}","starred_url":"https://api.github.com/users/mbramson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbramson/subscriptions","organizations_url":"https://api.github.com/users/mbramson/orgs","repos_url":"https://api.github.com/users/mbramson/repos","events_url":"https://api.github.com/users/mbramson/events{/privacy}","received_events_url":"https://api.github.com/users/mbramson/received_events","type":"User","site_admin":false},"body":"Add user authentication.\r\n\r\nAdd the session and registration paths.\r\n\r\nAdd ex-machina for testing and comeonin for password hashing.\r\n\r\nAny accounts that currently exist before the migration in this PR will be assigned a password of \"password\" (which they can change by editing their user).\r\n\r\nCloses #5 ","created_at":"2016-11-22T21:46:51Z","updated_at":"2016-12-06T15:49:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6ceda19858b8be76b2b0902251c07b9e17bf550","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ElixirCLE/pairmotron/pulls/31/commits","review_comments_url":"https://api.github.com/repos/ElixirCLE/pairmotron/pulls/31/comments","review_comment_url":"https://api.github.com/repos/ElixirCLE/pairmotron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ElixirCLE/pairmotron/issues/31/comments","statuses_url":"https://api.github.com/repos/ElixirCLE/pairmotron/statuses/8738c051d5f93ca3dccf9118a709139f996bdcac","head":{"label":"ElixirCLE:5-add-user-authentication","ref":"5-add-user-authentication","sha":"8738c051d5f93ca3dccf9118a709139f996bdcac","user":{"login":"ElixirCLE","id":17600691,"avatar_url":"https://avatars.githubusercontent.com/u/17600691?v=3","gravatar_id":"","url":"https://api.github.com/users/ElixirCLE","html_url":"https://github.com/ElixirCLE","followers_url":"https://api.github.com/users/ElixirCLE/followers","following_url":"https://api.github.com/users/ElixirCLE/following{/other_user}","gists_url":"https://api.github.com/users/ElixirCLE/gists{/gist_id}","starred_url":"https://api.github.com/users/ElixirCLE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElixirCLE/subscriptions","organizations_url":"https://api.github.com/users/ElixirCLE/orgs","repos_url":"https://api.github.com/users/ElixirCLE/repos","events_url":"https://api.github.com/users/ElixirCLE/events{/privacy}","received_events_url":"https://api.github.com/users/ElixirCLE/received_events","type":"Organization","site_admin":false},"repo":{"id":72885199,"name":"pairmotron","full_name":"ElixirCLE/pairmotron","owner":{"login":"ElixirCLE","id":17600691,"avatar_url":"https://avatars.githubusercontent.com/u/17600691?v=3","gravatar_id":"","url":"https://api.github.com/users/ElixirCLE","html_url":"https://github.com/ElixirCLE","followers_url":"https://api.github.com/users/ElixirCLE/followers","following_url":"https://api.github.com/users/ElixirCLE/following{/other_user}","gists_url":"https://api.github.com/users/ElixirCLE/gists{/gist_id}","starred_url":"https://api.github.com/users/ElixirCLE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElixirCLE/subscriptions","organizations_url":"https://api.github.com/users/ElixirCLE/orgs","repos_url":"https://api.github.com/users/ElixirCLE/repos","events_url":"https://api.github.com/users/ElixirCLE/events{/privacy}","received_events_url":"https://api.github.com/users/ElixirCLE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ElixirCLE/pairmotron","description":"Programming Pair Pairifier","fork":false,"url":"https://api.github.com/repos/ElixirCLE/pairmotron","forks_url":"https://api.github.com/repos/ElixirCLE/pairmotron/forks","keys_url":"https://api.github.com/repos/ElixirCLE/pairmotron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ElixirCLE/pairmotron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ElixirCLE/pairmotron/teams","hooks_url":"https://api.github.com/repos/ElixirCLE/pairmotron/hooks","issue_events_url":"https://api.github.com/repos/ElixirCLE/pairmotron/issues/events{/number}","events_url":"https://api.github.com/repos/ElixirCLE/pairmotron/events","assignees_url":"https://api.github.com/repos/ElixirCLE/pairmotron/assignees{/user}","branches_url":"https://api.github.com/repos/ElixirCLE/pairmotron/branches{/branch}","tags_url":"https://api.github.com/repos/ElixirCLE/pairmotron/tags","blobs_url":"https://api.github.com/repos/ElixirCLE/pairmotron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ElixirCLE/pairmotron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ElixirCLE/pairmotron/git/refs{/sha}","trees_url":"https://api.github.com/repos/ElixirCLE/pairmotron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ElixirCLE/pairmotron/statuses/{sha}","languages_url":"https://api.github.com/repos/ElixirCLE/pairmotron/languages","stargazers_url":"https://api.github.com/repos/ElixirCLE/pairmotron/stargazers","contributors_url":"https://api.github.com/repos/ElixirCLE/pairmotron/contributors","subscribers_url":"https://api.github.com/repos/ElixirCLE/pairmotron/subscribers","subscription_url":"https://api.github.com/repos/ElixirCLE/pairmotron/subscription","commits_url":"https://api.github.com/repos/ElixirCLE/pairmotron/commits{/sha}","git_commits_url":"https://api.github.com/repos/ElixirCLE/pairmotron/git/commits{/sha}","comments_url":"https://api.github.com/repos/ElixirCLE/pairmotron/comments{/number}","issue_comment_url":"https://api.github.com/repos/ElixirCLE/pairmotron/issues/comments{/number}","contents_url":"https://api.github.com/repos/ElixirCLE/pairmotron/contents/{+path}","compare_url":"https://api.github.com/repos/ElixirCLE/pairmotron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ElixirCLE/pairmotron/merges","archive_url":"https://api.github.com/repos/ElixirCLE/pairmotron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ElixirCLE/pairmotron/downloads","issues_url":"https://api.github.com/repos/ElixirCLE/pairmotron/issues{/number}","pulls_url":"https://api.github.com/repos/ElixirCLE/pairmotron/pulls{/number}","milestones_url":"https://api.github.com/repos/ElixirCLE/pairmotron/milestones{/number}","notifications_url":"https://api.github.com/repos/ElixirCLE/pairmotron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ElixirCLE/pairmotron/labels{/name}","releases_url":"https://api.github.com/repos/ElixirCLE/pairmotron/releases{/id}","deployments_url":"https://api.github.com/repos/ElixirCLE/pairmotron/deployments","created_at":"2016-11-04T21:03:33Z","updated_at":"2016-12-02T19:50:47Z","pushed_at":"2016-12-06T15:47:47Z","git_url":"git://github.com/ElixirCLE/pairmotron.git","ssh_url":"git@github.com:ElixirCLE/pairmotron.git","clone_url":"https://github.com/ElixirCLE/pairmotron.git","svn_url":"https://github.com/ElixirCLE/pairmotron","homepage":"https://pairmotron.herokuapp.com","size":108,"stargazers_count":2,"watchers_count":2,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":2,"default_branch":"master"}},"base":{"label":"ElixirCLE:master","ref":"master","sha":"29a031886a06f04f45bcef9c57c53e6c9e1bcc37","user":{"login":"ElixirCLE","id":17600691,"avatar_url":"https://avatars.githubusercontent.com/u/17600691?v=3","gravatar_id":"","url":"https://api.github.com/users/ElixirCLE","html_url":"https://github.com/ElixirCLE","followers_url":"https://api.github.com/users/ElixirCLE/followers","following_url":"https://api.github.com/users/ElixirCLE/following{/other_user}","gists_url":"https://api.github.com/users/ElixirCLE/gists{/gist_id}","starred_url":"https://api.github.com/users/ElixirCLE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElixirCLE/subscriptions","organizations_url":"https://api.github.com/users/ElixirCLE/orgs","repos_url":"https://api.github.com/users/ElixirCLE/repos","events_url":"https://api.github.com/users/ElixirCLE/events{/privacy}","received_events_url":"https://api.github.com/users/ElixirCLE/received_events","type":"Organization","site_admin":false},"repo":{"id":72885199,"name":"pairmotron","full_name":"ElixirCLE/pairmotron","owner":{"login":"ElixirCLE","id":17600691,"avatar_url":"https://avatars.githubusercontent.com/u/17600691?v=3","gravatar_id":"","url":"https://api.github.com/users/ElixirCLE","html_url":"https://github.com/ElixirCLE","followers_url":"https://api.github.com/users/ElixirCLE/followers","following_url":"https://api.github.com/users/ElixirCLE/following{/other_user}","gists_url":"https://api.github.com/users/ElixirCLE/gists{/gist_id}","starred_url":"https://api.github.com/users/ElixirCLE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElixirCLE/subscriptions","organizations_url":"https://api.github.com/users/ElixirCLE/orgs","repos_url":"https://api.github.com/users/ElixirCLE/repos","events_url":"https://api.github.com/users/ElixirCLE/events{/privacy}","received_events_url":"https://api.github.com/users/ElixirCLE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ElixirCLE/pairmotron","description":"Programming Pair Pairifier","fork":false,"url":"https://api.github.com/repos/ElixirCLE/pairmotron","forks_url":"https://api.github.com/repos/ElixirCLE/pairmotron/forks","keys_url":"https://api.github.com/repos/ElixirCLE/pairmotron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ElixirCLE/pairmotron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ElixirCLE/pairmotron/teams","hooks_url":"https://api.github.com/repos/ElixirCLE/pairmotron/hooks","issue_events_url":"https://api.github.com/repos/ElixirCLE/pairmotron/issues/events{/number}","events_url":"https://api.github.com/repos/ElixirCLE/pairmotron/events","assignees_url":"https://api.github.com/repos/ElixirCLE/pairmotron/assignees{/user}","branches_url":"https://api.github.com/repos/ElixirCLE/pairmotron/branches{/branch}","tags_url":"https://api.github.com/repos/ElixirCLE/pairmotron/tags","blobs_url":"https://api.github.com/repos/ElixirCLE/pairmotron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ElixirCLE/pairmotron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ElixirCLE/pairmotron/git/refs{/sha}","trees_url":"https://api.github.com/repos/ElixirCLE/pairmotron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ElixirCLE/pairmotron/statuses/{sha}","languages_url":"https://api.github.com/repos/ElixirCLE/pairmotron/languages","stargazers_url":"https://api.github.com/repos/ElixirCLE/pairmotron/stargazers","contributors_url":"https://api.github.com/repos/ElixirCLE/pairmotron/contributors","subscribers_url":"https://api.github.com/repos/ElixirCLE/pairmotron/subscribers","subscription_url":"https://api.github.com/repos/ElixirCLE/pairmotron/subscription","commits_url":"https://api.github.com/repos/ElixirCLE/pairmotron/commits{/sha}","git_commits_url":"https://api.github.com/repos/ElixirCLE/pairmotron/git/commits{/sha}","comments_url":"https://api.github.com/repos/ElixirCLE/pairmotron/comments{/number}","issue_comment_url":"https://api.github.com/repos/ElixirCLE/pairmotron/issues/comments{/number}","contents_url":"https://api.github.com/repos/ElixirCLE/pairmotron/contents/{+path}","compare_url":"https://api.github.com/repos/ElixirCLE/pairmotron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ElixirCLE/pairmotron/merges","archive_url":"https://api.github.com/repos/ElixirCLE/pairmotron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ElixirCLE/pairmotron/downloads","issues_url":"https://api.github.com/repos/ElixirCLE/pairmotron/issues{/number}","pulls_url":"https://api.github.com/repos/ElixirCLE/pairmotron/pulls{/number}","milestones_url":"https://api.github.com/repos/ElixirCLE/pairmotron/milestones{/number}","notifications_url":"https://api.github.com/repos/ElixirCLE/pairmotron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ElixirCLE/pairmotron/labels{/name}","releases_url":"https://api.github.com/repos/ElixirCLE/pairmotron/releases{/id}","deployments_url":"https://api.github.com/repos/ElixirCLE/pairmotron/deployments","created_at":"2016-11-04T21:03:33Z","updated_at":"2016-12-02T19:50:47Z","pushed_at":"2016-12-06T15:47:47Z","git_url":"git://github.com/ElixirCLE/pairmotron.git","ssh_url":"git@github.com:ElixirCLE/pairmotron.git","clone_url":"https://github.com/ElixirCLE/pairmotron.git","svn_url":"https://github.com/ElixirCLE/pairmotron","homepage":"https://pairmotron.herokuapp.com","size":108,"stargazers_count":2,"watchers_count":2,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ElixirCLE/pairmotron/pulls/31"},"html":{"href":"https://github.com/ElixirCLE/pairmotron/pull/31"},"issue":{"href":"https://api.github.com/repos/ElixirCLE/pairmotron/issues/31"},"comments":{"href":"https://api.github.com/repos/ElixirCLE/pairmotron/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/ElixirCLE/pairmotron/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/ElixirCLE/pairmotron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ElixirCLE/pairmotron/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/ElixirCLE/pairmotron/statuses/8738c051d5f93ca3dccf9118a709139f996bdcac"}}}}
{"actor":{"display_login":"mbramson"}}