{"action":"opened","number":29,"pull_request":{"url":"https://api.github.com/repos/rpiambulance/website/pulls/29","id":212573757,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNTczNzU3","html_url":"https://github.com/rpiambulance/website/pull/29","diff_url":"https://github.com/rpiambulance/website/pull/29.diff","patch_url":"https://github.com/rpiambulance/website/pull/29.patch","issue_url":"https://api.github.com/repos/rpiambulance/website/issues/29","number":29,"state":"open","locked":false,"title":"Use a more secure password hash method","user":{"login":"MasterOdin","id":1845314,"node_id":"MDQ6VXNlcjE4NDUzMTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1845314?v=4","gravatar_id":"","url":"https://api.github.com/users/MasterOdin","html_url":"https://github.com/MasterOdin","followers_url":"https://api.github.com/users/MasterOdin/followers","following_url":"https://api.github.com/users/MasterOdin/following{/other_user}","gists_url":"https://api.github.com/users/MasterOdin/gists{/gist_id}","starred_url":"https://api.github.com/users/MasterOdin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasterOdin/subscriptions","organizations_url":"https://api.github.com/users/MasterOdin/orgs","repos_url":"https://api.github.com/users/MasterOdin/repos","events_url":"https://api.github.com/users/MasterOdin/events{/privacy}","received_events_url":"https://api.github.com/users/MasterOdin/received_events","type":"User","site_admin":false},"body":"This replaces the insecure md5 method being used for passwords with a proper password hash method.\r\n\r\nThis requires the following DB query to be run (which does not affect any existing rows): `ALTER TABLE `members` MODIFY `password` VARCHAR(255) NOT NULL;`\r\n\r\nAfter a period of time, find any members who have yet to update their password: `SELECT id,username FROM `members` WHERE `password` NOT LIKE '$2y$%'`\r\n\r\n(the `$2y$` is an identifier for the bcrypt algorithm, so anyone who doesn't have it at the beginning of their password is not using bcrypt, which is what `password_hash` uses).","created_at":"2018-09-02T03:12:49Z","updated_at":"2018-09-02T03:12:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rpiambulance/website/pulls/29/commits","review_comments_url":"https://api.github.com/repos/rpiambulance/website/pulls/29/comments","review_comment_url":"https://api.github.com/repos/rpiambulance/website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rpiambulance/website/issues/29/comments","statuses_url":"https://api.github.com/repos/rpiambulance/website/statuses/f6f857e889e8da7e4066fb52a12eaf0eb56d2344","head":{"label":"MasterOdin:password_hash","ref":"password_hash","sha":"f6f857e889e8da7e4066fb52a12eaf0eb56d2344","user":{"login":"MasterOdin","id":1845314,"node_id":"MDQ6VXNlcjE4NDUzMTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1845314?v=4","gravatar_id":"","url":"https://api.github.com/users/MasterOdin","html_url":"https://github.com/MasterOdin","followers_url":"https://api.github.com/users/MasterOdin/followers","following_url":"https://api.github.com/users/MasterOdin/following{/other_user}","gists_url":"https://api.github.com/users/MasterOdin/gists{/gist_id}","starred_url":"https://api.github.com/users/MasterOdin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasterOdin/subscriptions","organizations_url":"https://api.github.com/users/MasterOdin/orgs","repos_url":"https://api.github.com/users/MasterOdin/repos","events_url":"https://api.github.com/users/MasterOdin/events{/privacy}","received_events_url":"https://api.github.com/users/MasterOdin/received_events","type":"User","site_admin":false},"repo":{"id":146710432,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY3MTA0MzI=","name":"website","full_name":"MasterOdin/website","owner":{"login":"MasterOdin","id":1845314,"node_id":"MDQ6VXNlcjE4NDUzMTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1845314?v=4","gravatar_id":"","url":"https://api.github.com/users/MasterOdin","html_url":"https://github.com/MasterOdin","followers_url":"https://api.github.com/users/MasterOdin/followers","following_url":"https://api.github.com/users/MasterOdin/following{/other_user}","gists_url":"https://api.github.com/users/MasterOdin/gists{/gist_id}","starred_url":"https://api.github.com/users/MasterOdin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasterOdin/subscriptions","organizations_url":"https://api.github.com/users/MasterOdin/orgs","repos_url":"https://api.github.com/users/MasterOdin/repos","events_url":"https://api.github.com/users/MasterOdin/events{/privacy}","received_events_url":"https://api.github.com/users/MasterOdin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MasterOdin/website","description":"RPI Ambulance's website—a work in progress","fork":true,"url":"https://api.github.com/repos/MasterOdin/website","forks_url":"https://api.github.com/repos/MasterOdin/website/forks","keys_url":"https://api.github.com/repos/MasterOdin/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MasterOdin/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MasterOdin/website/teams","hooks_url":"https://api.github.com/repos/MasterOdin/website/hooks","issue_events_url":"https://api.github.com/repos/MasterOdin/website/issues/events{/number}","events_url":"https://api.github.com/repos/MasterOdin/website/events","assignees_url":"https://api.github.com/repos/MasterOdin/website/assignees{/user}","branches_url":"https://api.github.com/repos/MasterOdin/website/branches{/branch}","tags_url":"https://api.github.com/repos/MasterOdin/website/tags","blobs_url":"https://api.github.com/repos/MasterOdin/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MasterOdin/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MasterOdin/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/MasterOdin/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MasterOdin/website/statuses/{sha}","languages_url":"https://api.github.com/repos/MasterOdin/website/languages","stargazers_url":"https://api.github.com/repos/MasterOdin/website/stargazers","contributors_url":"https://api.github.com/repos/MasterOdin/website/contributors","subscribers_url":"https://api.github.com/repos/MasterOdin/website/subscribers","subscription_url":"https://api.github.com/repos/MasterOdin/website/subscription","commits_url":"https://api.github.com/repos/MasterOdin/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/MasterOdin/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/MasterOdin/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/MasterOdin/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/MasterOdin/website/contents/{+path}","compare_url":"https://api.github.com/repos/MasterOdin/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MasterOdin/website/merges","archive_url":"https://api.github.com/repos/MasterOdin/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MasterOdin/website/downloads","issues_url":"https://api.github.com/repos/MasterOdin/website/issues{/number}","pulls_url":"https://api.github.com/repos/MasterOdin/website/pulls{/number}","milestones_url":"https://api.github.com/repos/MasterOdin/website/milestones{/number}","notifications_url":"https://api.github.com/repos/MasterOdin/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MasterOdin/website/labels{/name}","releases_url":"https://api.github.com/repos/MasterOdin/website/releases{/id}","deployments_url":"https://api.github.com/repos/MasterOdin/website/deployments","created_at":"2018-08-30T07:10:20Z","updated_at":"2018-08-30T07:10:23Z","pushed_at":"2018-09-02T02:54:10Z","git_url":"git://github.com/MasterOdin/website.git","ssh_url":"git@github.com:MasterOdin/website.git","clone_url":"https://github.com/MasterOdin/website.git","svn_url":"https://github.com/MasterOdin/website","homepage":"http://rpiambulance.com/","size":93273,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rpiambulance:master","ref":"master","sha":"1f30843cb7af3b2a57537a9c8868460df4bb7b0c","user":{"login":"rpiambulance","id":31781551,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNzgxNTUx","avatar_url":"https://avatars3.githubusercontent.com/u/31781551?v=4","gravatar_id":"","url":"https://api.github.com/users/rpiambulance","html_url":"https://github.com/rpiambulance","followers_url":"https://api.github.com/users/rpiambulance/followers","following_url":"https://api.github.com/users/rpiambulance/following{/other_user}","gists_url":"https://api.github.com/users/rpiambulance/gists{/gist_id}","starred_url":"https://api.github.com/users/rpiambulance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpiambulance/subscriptions","organizations_url":"https://api.github.com/users/rpiambulance/orgs","repos_url":"https://api.github.com/users/rpiambulance/repos","events_url":"https://api.github.com/users/rpiambulance/events{/privacy}","received_events_url":"https://api.github.com/users/rpiambulance/received_events","type":"Organization","site_admin":false},"repo":{"id":102961780,"node_id":"MDEwOlJlcG9zaXRvcnkxMDI5NjE3ODA=","name":"website","full_name":"rpiambulance/website","owner":{"login":"rpiambulance","id":31781551,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNzgxNTUx","avatar_url":"https://avatars3.githubusercontent.com/u/31781551?v=4","gravatar_id":"","url":"https://api.github.com/users/rpiambulance","html_url":"https://github.com/rpiambulance","followers_url":"https://api.github.com/users/rpiambulance/followers","following_url":"https://api.github.com/users/rpiambulance/following{/other_user}","gists_url":"https://api.github.com/users/rpiambulance/gists{/gist_id}","starred_url":"https://api.github.com/users/rpiambulance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpiambulance/subscriptions","organizations_url":"https://api.github.com/users/rpiambulance/orgs","repos_url":"https://api.github.com/users/rpiambulance/repos","events_url":"https://api.github.com/users/rpiambulance/events{/privacy}","received_events_url":"https://api.github.com/users/rpiambulance/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rpiambulance/website","description":"RPI Ambulance's website—a work in progress","fork":false,"url":"https://api.github.com/repos/rpiambulance/website","forks_url":"https://api.github.com/repos/rpiambulance/website/forks","keys_url":"https://api.github.com/repos/rpiambulance/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rpiambulance/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rpiambulance/website/teams","hooks_url":"https://api.github.com/repos/rpiambulance/website/hooks","issue_events_url":"https://api.github.com/repos/rpiambulance/website/issues/events{/number}","events_url":"https://api.github.com/repos/rpiambulance/website/events","assignees_url":"https://api.github.com/repos/rpiambulance/website/assignees{/user}","branches_url":"https://api.github.com/repos/rpiambulance/website/branches{/branch}","tags_url":"https://api.github.com/repos/rpiambulance/website/tags","blobs_url":"https://api.github.com/repos/rpiambulance/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rpiambulance/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rpiambulance/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/rpiambulance/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rpiambulance/website/statuses/{sha}","languages_url":"https://api.github.com/repos/rpiambulance/website/languages","stargazers_url":"https://api.github.com/repos/rpiambulance/website/stargazers","contributors_url":"https://api.github.com/repos/rpiambulance/website/contributors","subscribers_url":"https://api.github.com/repos/rpiambulance/website/subscribers","subscription_url":"https://api.github.com/repos/rpiambulance/website/subscription","commits_url":"https://api.github.com/repos/rpiambulance/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/rpiambulance/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/rpiambulance/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/rpiambulance/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/rpiambulance/website/contents/{+path}","compare_url":"https://api.github.com/repos/rpiambulance/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rpiambulance/website/merges","archive_url":"https://api.github.com/repos/rpiambulance/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rpiambulance/website/downloads","issues_url":"https://api.github.com/repos/rpiambulance/website/issues{/number}","pulls_url":"https://api.github.com/repos/rpiambulance/website/pulls{/number}","milestones_url":"https://api.github.com/repos/rpiambulance/website/milestones{/number}","notifications_url":"https://api.github.com/repos/rpiambulance/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rpiambulance/website/labels{/name}","releases_url":"https://api.github.com/repos/rpiambulance/website/releases{/id}","deployments_url":"https://api.github.com/repos/rpiambulance/website/deployments","created_at":"2017-09-09T14:45:48Z","updated_at":"2018-09-02T01:17:32Z","pushed_at":"2018-09-02T01:17:31Z","git_url":"git://github.com/rpiambulance/website.git","ssh_url":"git@github.com:rpiambulance/website.git","clone_url":"https://github.com/rpiambulance/website.git","svn_url":"https://github.com/rpiambulance/website","homepage":"http://rpiambulance.com/","size":93260,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":3,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rpiambulance/website/pulls/29"},"html":{"href":"https://github.com/rpiambulance/website/pull/29"},"issue":{"href":"https://api.github.com/repos/rpiambulance/website/issues/29"},"comments":{"href":"https://api.github.com/repos/rpiambulance/website/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/rpiambulance/website/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/rpiambulance/website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rpiambulance/website/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/rpiambulance/website/statuses/f6f857e889e8da7e4066fb52a12eaf0eb56d2344"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":39,"deletions":8,"changed_files":5}}
{"actor":{"display_login":"MasterOdin"}}