{"action":"created","comment":{"url":"https://api.github.com/repos/DevvitIO/CMS/pulls/comments/149686625","pull_request_review_id":75118484,"id":149686625,"diff_hunk":"@@ -0,0 +1,31 @@\n+<?php\n+    class user extends db{\n+        public function register($username,$password){\n+            $new_password = password_hash($password, PASSWORD_DEFAULT);\n+            $connection = $this->connect();\n+            $result = $connection->query(\"INSERT INTO users(username, password)","path":"website/connections/class.user.php","position":6,"original_position":6,"commit_id":"2a16d51321d9ddae4ff554289d26987c918629fb","original_commit_id":"2a16d51321d9ddae4ff554289d26987c918629fb","user":{"login":"jardayn","id":7421976,"avatar_url":"https://avatars1.githubusercontent.com/u/7421976?v=4","gravatar_id":"","url":"https://api.github.com/users/jardayn","html_url":"https://github.com/jardayn","followers_url":"https://api.github.com/users/jardayn/followers","following_url":"https://api.github.com/users/jardayn/following{/other_user}","gists_url":"https://api.github.com/users/jardayn/gists{/gist_id}","starred_url":"https://api.github.com/users/jardayn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jardayn/subscriptions","organizations_url":"https://api.github.com/users/jardayn/orgs","repos_url":"https://api.github.com/users/jardayn/repos","events_url":"https://api.github.com/users/jardayn/events{/privacy}","received_events_url":"https://api.github.com/users/jardayn/received_events","type":"User","site_admin":false},"body":"What if the user already exists with the current username?","created_at":"2017-11-08T14:39:42Z","updated_at":"2017-11-08T14:39:42Z","html_url":"https://github.com/DevvitIO/CMS/pull/18#discussion_r149686625","pull_request_url":"https://api.github.com/repos/DevvitIO/CMS/pulls/18","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/DevvitIO/CMS/pulls/comments/149686625"},"html":{"href":"https://github.com/DevvitIO/CMS/pull/18#discussion_r149686625"},"pull_request":{"href":"https://api.github.com/repos/DevvitIO/CMS/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/DevvitIO/CMS/pulls/18","id":151208287,"html_url":"https://github.com/DevvitIO/CMS/pull/18","diff_url":"https://github.com/DevvitIO/CMS/pull/18.diff","patch_url":"https://github.com/DevvitIO/CMS/pull/18.patch","issue_url":"https://api.github.com/repos/DevvitIO/CMS/issues/18","number":18,"state":"closed","locked":false,"title":"Added the database connection","user":{"login":"jorda13456","id":6192494,"avatar_url":"https://avatars3.githubusercontent.com/u/6192494?v=4","gravatar_id":"","url":"https://api.github.com/users/jorda13456","html_url":"https://github.com/jorda13456","followers_url":"https://api.github.com/users/jorda13456/followers","following_url":"https://api.github.com/users/jorda13456/following{/other_user}","gists_url":"https://api.github.com/users/jorda13456/gists{/gist_id}","starred_url":"https://api.github.com/users/jorda13456/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorda13456/subscriptions","organizations_url":"https://api.github.com/users/jorda13456/orgs","repos_url":"https://api.github.com/users/jorda13456/repos","events_url":"https://api.github.com/users/jorda13456/events{/privacy}","received_events_url":"https://api.github.com/users/jorda13456/received_events","type":"User","site_admin":false},"body":"index.html && signup.html has been changed to .php\r\nconnection folder created and is stored with the appropriate files\r\n","created_at":"2017-11-07T19:41:29Z","updated_at":"2017-11-08T14:39:42Z","closed_at":"2017-11-07T20:06:34Z","merged_at":"2017-11-07T20:06:34Z","merge_commit_sha":"0fc97afa70a6a27effcd9149e0d5e8de1128ea96","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/DevvitIO/CMS/pulls/18/commits","review_comments_url":"https://api.github.com/repos/DevvitIO/CMS/pulls/18/comments","review_comment_url":"https://api.github.com/repos/DevvitIO/CMS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DevvitIO/CMS/issues/18/comments","statuses_url":"https://api.github.com/repos/DevvitIO/CMS/statuses/2a16d51321d9ddae4ff554289d26987c918629fb","head":{"label":"jorda13456:master","ref":"master","sha":"2a16d51321d9ddae4ff554289d26987c918629fb","user":{"login":"jorda13456","id":6192494,"avatar_url":"https://avatars3.githubusercontent.com/u/6192494?v=4","gravatar_id":"","url":"https://api.github.com/users/jorda13456","html_url":"https://github.com/jorda13456","followers_url":"https://api.github.com/users/jorda13456/followers","following_url":"https://api.github.com/users/jorda13456/following{/other_user}","gists_url":"https://api.github.com/users/jorda13456/gists{/gist_id}","starred_url":"https://api.github.com/users/jorda13456/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorda13456/subscriptions","organizations_url":"https://api.github.com/users/jorda13456/orgs","repos_url":"https://api.github.com/users/jorda13456/repos","events_url":"https://api.github.com/users/jorda13456/events{/privacy}","received_events_url":"https://api.github.com/users/jorda13456/received_events","type":"User","site_admin":false},"repo":{"id":109879941,"name":"CMS","full_name":"jorda13456/CMS","owner":{"login":"jorda13456","id":6192494,"avatar_url":"https://avatars3.githubusercontent.com/u/6192494?v=4","gravatar_id":"","url":"https://api.github.com/users/jorda13456","html_url":"https://github.com/jorda13456","followers_url":"https://api.github.com/users/jorda13456/followers","following_url":"https://api.github.com/users/jorda13456/following{/other_user}","gists_url":"https://api.github.com/users/jorda13456/gists{/gist_id}","starred_url":"https://api.github.com/users/jorda13456/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorda13456/subscriptions","organizations_url":"https://api.github.com/users/jorda13456/orgs","repos_url":"https://api.github.com/users/jorda13456/repos","events_url":"https://api.github.com/users/jorda13456/events{/privacy}","received_events_url":"https://api.github.com/users/jorda13456/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jorda13456/CMS","description":"A basic CMS mixed with a blogging software.","fork":true,"url":"https://api.github.com/repos/jorda13456/CMS","forks_url":"https://api.github.com/repos/jorda13456/CMS/forks","keys_url":"https://api.github.com/repos/jorda13456/CMS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jorda13456/CMS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jorda13456/CMS/teams","hooks_url":"https://api.github.com/repos/jorda13456/CMS/hooks","issue_events_url":"https://api.github.com/repos/jorda13456/CMS/issues/events{/number}","events_url":"https://api.github.com/repos/jorda13456/CMS/events","assignees_url":"https://api.github.com/repos/jorda13456/CMS/assignees{/user}","branches_url":"https://api.github.com/repos/jorda13456/CMS/branches{/branch}","tags_url":"https://api.github.com/repos/jorda13456/CMS/tags","blobs_url":"https://api.github.com/repos/jorda13456/CMS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jorda13456/CMS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jorda13456/CMS/git/refs{/sha}","trees_url":"https://api.github.com/repos/jorda13456/CMS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jorda13456/CMS/statuses/{sha}","languages_url":"https://api.github.com/repos/jorda13456/CMS/languages","stargazers_url":"https://api.github.com/repos/jorda13456/CMS/stargazers","contributors_url":"https://api.github.com/repos/jorda13456/CMS/contributors","subscribers_url":"https://api.github.com/repos/jorda13456/CMS/subscribers","subscription_url":"https://api.github.com/repos/jorda13456/CMS/subscription","commits_url":"https://api.github.com/repos/jorda13456/CMS/commits{/sha}","git_commits_url":"https://api.github.com/repos/jorda13456/CMS/git/commits{/sha}","comments_url":"https://api.github.com/repos/jorda13456/CMS/comments{/number}","issue_comment_url":"https://api.github.com/repos/jorda13456/CMS/issues/comments{/number}","contents_url":"https://api.github.com/repos/jorda13456/CMS/contents/{+path}","compare_url":"https://api.github.com/repos/jorda13456/CMS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jorda13456/CMS/merges","archive_url":"https://api.github.com/repos/jorda13456/CMS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jorda13456/CMS/downloads","issues_url":"https://api.github.com/repos/jorda13456/CMS/issues{/number}","pulls_url":"https://api.github.com/repos/jorda13456/CMS/pulls{/number}","milestones_url":"https://api.github.com/repos/jorda13456/CMS/milestones{/number}","notifications_url":"https://api.github.com/repos/jorda13456/CMS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jorda13456/CMS/labels{/name}","releases_url":"https://api.github.com/repos/jorda13456/CMS/releases{/id}","deployments_url":"https://api.github.com/repos/jorda13456/CMS/deployments","created_at":"2017-11-07T19:18:48Z","updated_at":"2017-11-07T19:39:07Z","pushed_at":"2017-11-07T19:39:21Z","git_url":"git://github.com/jorda13456/CMS.git","ssh_url":"git@github.com:jorda13456/CMS.git","clone_url":"https://github.com/jorda13456/CMS.git","svn_url":"https://github.com/jorda13456/CMS","homepage":"","size":72,"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,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DevvitIO:master","ref":"master","sha":"527ccbd014ddfadf6326885f727319dc15b95771","user":{"login":"DevvitIO","id":32555830,"avatar_url":"https://avatars3.githubusercontent.com/u/32555830?v=4","gravatar_id":"","url":"https://api.github.com/users/DevvitIO","html_url":"https://github.com/DevvitIO","followers_url":"https://api.github.com/users/DevvitIO/followers","following_url":"https://api.github.com/users/DevvitIO/following{/other_user}","gists_url":"https://api.github.com/users/DevvitIO/gists{/gist_id}","starred_url":"https://api.github.com/users/DevvitIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevvitIO/subscriptions","organizations_url":"https://api.github.com/users/DevvitIO/orgs","repos_url":"https://api.github.com/users/DevvitIO/repos","events_url":"https://api.github.com/users/DevvitIO/events{/privacy}","received_events_url":"https://api.github.com/users/DevvitIO/received_events","type":"Organization","site_admin":false},"repo":{"id":106478602,"name":"CMS","full_name":"DevvitIO/CMS","owner":{"login":"DevvitIO","id":32555830,"avatar_url":"https://avatars3.githubusercontent.com/u/32555830?v=4","gravatar_id":"","url":"https://api.github.com/users/DevvitIO","html_url":"https://github.com/DevvitIO","followers_url":"https://api.github.com/users/DevvitIO/followers","following_url":"https://api.github.com/users/DevvitIO/following{/other_user}","gists_url":"https://api.github.com/users/DevvitIO/gists{/gist_id}","starred_url":"https://api.github.com/users/DevvitIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevvitIO/subscriptions","organizations_url":"https://api.github.com/users/DevvitIO/orgs","repos_url":"https://api.github.com/users/DevvitIO/repos","events_url":"https://api.github.com/users/DevvitIO/events{/privacy}","received_events_url":"https://api.github.com/users/DevvitIO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DevvitIO/CMS","description":"A basic CMS mixed with a blogging software.","fork":false,"url":"https://api.github.com/repos/DevvitIO/CMS","forks_url":"https://api.github.com/repos/DevvitIO/CMS/forks","keys_url":"https://api.github.com/repos/DevvitIO/CMS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DevvitIO/CMS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DevvitIO/CMS/teams","hooks_url":"https://api.github.com/repos/DevvitIO/CMS/hooks","issue_events_url":"https://api.github.com/repos/DevvitIO/CMS/issues/events{/number}","events_url":"https://api.github.com/repos/DevvitIO/CMS/events","assignees_url":"https://api.github.com/repos/DevvitIO/CMS/assignees{/user}","branches_url":"https://api.github.com/repos/DevvitIO/CMS/branches{/branch}","tags_url":"https://api.github.com/repos/DevvitIO/CMS/tags","blobs_url":"https://api.github.com/repos/DevvitIO/CMS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DevvitIO/CMS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DevvitIO/CMS/git/refs{/sha}","trees_url":"https://api.github.com/repos/DevvitIO/CMS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DevvitIO/CMS/statuses/{sha}","languages_url":"https://api.github.com/repos/DevvitIO/CMS/languages","stargazers_url":"https://api.github.com/repos/DevvitIO/CMS/stargazers","contributors_url":"https://api.github.com/repos/DevvitIO/CMS/contributors","subscribers_url":"https://api.github.com/repos/DevvitIO/CMS/subscribers","subscription_url":"https://api.github.com/repos/DevvitIO/CMS/subscription","commits_url":"https://api.github.com/repos/DevvitIO/CMS/commits{/sha}","git_commits_url":"https://api.github.com/repos/DevvitIO/CMS/git/commits{/sha}","comments_url":"https://api.github.com/repos/DevvitIO/CMS/comments{/number}","issue_comment_url":"https://api.github.com/repos/DevvitIO/CMS/issues/comments{/number}","contents_url":"https://api.github.com/repos/DevvitIO/CMS/contents/{+path}","compare_url":"https://api.github.com/repos/DevvitIO/CMS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DevvitIO/CMS/merges","archive_url":"https://api.github.com/repos/DevvitIO/CMS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DevvitIO/CMS/downloads","issues_url":"https://api.github.com/repos/DevvitIO/CMS/issues{/number}","pulls_url":"https://api.github.com/repos/DevvitIO/CMS/pulls{/number}","milestones_url":"https://api.github.com/repos/DevvitIO/CMS/milestones{/number}","notifications_url":"https://api.github.com/repos/DevvitIO/CMS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DevvitIO/CMS/labels{/name}","releases_url":"https://api.github.com/repos/DevvitIO/CMS/releases{/id}","deployments_url":"https://api.github.com/repos/DevvitIO/CMS/deployments","created_at":"2017-10-10T22:33:34Z","updated_at":"2017-11-07T20:06:35Z","pushed_at":"2017-11-07T20:06:34Z","git_url":"git://github.com/DevvitIO/CMS.git","ssh_url":"git@github.com:DevvitIO/CMS.git","clone_url":"https://github.com/DevvitIO/CMS.git","svn_url":"https://github.com/DevvitIO/CMS","homepage":"","size":72,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DevvitIO/CMS/pulls/18"},"html":{"href":"https://github.com/DevvitIO/CMS/pull/18"},"issue":{"href":"https://api.github.com/repos/DevvitIO/CMS/issues/18"},"comments":{"href":"https://api.github.com/repos/DevvitIO/CMS/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/DevvitIO/CMS/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/DevvitIO/CMS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DevvitIO/CMS/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/DevvitIO/CMS/statuses/2a16d51321d9ddae4ff554289d26987c918629fb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jardayn"}}