{"action":"opened","number":25,"pull_request":{"url":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/25","id":70398903,"html_url":"https://github.com/DylanMeeus/ephemeral/pull/25","diff_url":"https://github.com/DylanMeeus/ephemeral/pull/25.diff","patch_url":"https://github.com/DylanMeeus/ephemeral/pull/25.patch","issue_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/25","number":25,"state":"open","locked":false,"title":"Set up Login System","user":{"login":"xcgpseud","id":1755473,"avatar_url":"https://avatars.githubusercontent.com/u/1755473?v=3","gravatar_id":"","url":"https://api.github.com/users/xcgpseud","html_url":"https://github.com/xcgpseud","followers_url":"https://api.github.com/users/xcgpseud/followers","following_url":"https://api.github.com/users/xcgpseud/following{/other_user}","gists_url":"https://api.github.com/users/xcgpseud/gists{/gist_id}","starred_url":"https://api.github.com/users/xcgpseud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xcgpseud/subscriptions","organizations_url":"https://api.github.com/users/xcgpseud/orgs","repos_url":"https://api.github.com/users/xcgpseud/repos","events_url":"https://api.github.com/users/xcgpseud/events{/privacy}","received_events_url":"https://api.github.com/users/xcgpseud/received_events","type":"User","site_admin":false},"body":"- Moved hashing to the Facade\r\n- Basic profile page just to confirm that login worked\r\n- Added login method\r\n- Added User object with getters & setters\r\n- Added a couple of cookie methods, setDBCookie (sets a cookie in the databse) and getDBCookie (which grabs one from the database, for comparison).\r\n- Added a private method to get a cookie type ID from the given cookie name\r\n- Added a redirect right after logging in that sends you to the profile page rather than simply displaying it. This removes the \"Resend Data?\" option when you refresh the page.\r\n- Added a redirect from the login / register pages, so that if you are already logged in, you can't see them (sends you to profile page)\r\n\r\nA lot of the design stuff (profile page for example) is just temporary, for the sake of testing, but I've left it in there for now.\r\n\r\nthis PR connects to #15 ","created_at":"2016-05-17T17:39:01Z","updated_at":"2016-05-17T17:39:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afd3d469ce65d93449dd6f5f44d636425bf26819","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/25/commits","review_comments_url":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/25/comments","review_comment_url":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/25/comments","statuses_url":"https://api.github.com/repos/DylanMeeus/ephemeral/statuses/48d336fd358b9428708551484e3509ee71b28ce5","head":{"label":"DylanMeeus:loginSystem","ref":"loginSystem","sha":"48d336fd358b9428708551484e3509ee71b28ce5","user":{"login":"DylanMeeus","id":2179051,"avatar_url":"https://avatars.githubusercontent.com/u/2179051?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanMeeus","html_url":"https://github.com/DylanMeeus","followers_url":"https://api.github.com/users/DylanMeeus/followers","following_url":"https://api.github.com/users/DylanMeeus/following{/other_user}","gists_url":"https://api.github.com/users/DylanMeeus/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanMeeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanMeeus/subscriptions","organizations_url":"https://api.github.com/users/DylanMeeus/orgs","repos_url":"https://api.github.com/users/DylanMeeus/repos","events_url":"https://api.github.com/users/DylanMeeus/events{/privacy}","received_events_url":"https://api.github.com/users/DylanMeeus/received_events","type":"User","site_admin":false},"repo":{"id":58781329,"name":"ephemeral","full_name":"DylanMeeus/ephemeral","owner":{"login":"DylanMeeus","id":2179051,"avatar_url":"https://avatars.githubusercontent.com/u/2179051?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanMeeus","html_url":"https://github.com/DylanMeeus","followers_url":"https://api.github.com/users/DylanMeeus/followers","following_url":"https://api.github.com/users/DylanMeeus/following{/other_user}","gists_url":"https://api.github.com/users/DylanMeeus/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanMeeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanMeeus/subscriptions","organizations_url":"https://api.github.com/users/DylanMeeus/orgs","repos_url":"https://api.github.com/users/DylanMeeus/repos","events_url":"https://api.github.com/users/DylanMeeus/events{/privacy}","received_events_url":"https://api.github.com/users/DylanMeeus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DylanMeeus/ephemeral","description":"","fork":false,"url":"https://api.github.com/repos/DylanMeeus/ephemeral","forks_url":"https://api.github.com/repos/DylanMeeus/ephemeral/forks","keys_url":"https://api.github.com/repos/DylanMeeus/ephemeral/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DylanMeeus/ephemeral/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DylanMeeus/ephemeral/teams","hooks_url":"https://api.github.com/repos/DylanMeeus/ephemeral/hooks","issue_events_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/events{/number}","events_url":"https://api.github.com/repos/DylanMeeus/ephemeral/events","assignees_url":"https://api.github.com/repos/DylanMeeus/ephemeral/assignees{/user}","branches_url":"https://api.github.com/repos/DylanMeeus/ephemeral/branches{/branch}","tags_url":"https://api.github.com/repos/DylanMeeus/ephemeral/tags","blobs_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/refs{/sha}","trees_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DylanMeeus/ephemeral/statuses/{sha}","languages_url":"https://api.github.com/repos/DylanMeeus/ephemeral/languages","stargazers_url":"https://api.github.com/repos/DylanMeeus/ephemeral/stargazers","contributors_url":"https://api.github.com/repos/DylanMeeus/ephemeral/contributors","subscribers_url":"https://api.github.com/repos/DylanMeeus/ephemeral/subscribers","subscription_url":"https://api.github.com/repos/DylanMeeus/ephemeral/subscription","commits_url":"https://api.github.com/repos/DylanMeeus/ephemeral/commits{/sha}","git_commits_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/commits{/sha}","comments_url":"https://api.github.com/repos/DylanMeeus/ephemeral/comments{/number}","issue_comment_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/comments{/number}","contents_url":"https://api.github.com/repos/DylanMeeus/ephemeral/contents/{+path}","compare_url":"https://api.github.com/repos/DylanMeeus/ephemeral/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DylanMeeus/ephemeral/merges","archive_url":"https://api.github.com/repos/DylanMeeus/ephemeral/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DylanMeeus/ephemeral/downloads","issues_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues{/number}","pulls_url":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls{/number}","milestones_url":"https://api.github.com/repos/DylanMeeus/ephemeral/milestones{/number}","notifications_url":"https://api.github.com/repos/DylanMeeus/ephemeral/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DylanMeeus/ephemeral/labels{/name}","releases_url":"https://api.github.com/repos/DylanMeeus/ephemeral/releases{/id}","deployments_url":"https://api.github.com/repos/DylanMeeus/ephemeral/deployments","created_at":"2016-05-14T00:23:07Z","updated_at":"2016-05-14T01:08:11Z","pushed_at":"2016-05-17T17:39:01Z","git_url":"git://github.com/DylanMeeus/ephemeral.git","ssh_url":"git@github.com:DylanMeeus/ephemeral.git","clone_url":"https://github.com/DylanMeeus/ephemeral.git","svn_url":"https://github.com/DylanMeeus/ephemeral","homepage":null,"size":355,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"base":{"label":"DylanMeeus:master","ref":"master","sha":"6712121736a19de9776a0123422a2d3ba5b8d310","user":{"login":"DylanMeeus","id":2179051,"avatar_url":"https://avatars.githubusercontent.com/u/2179051?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanMeeus","html_url":"https://github.com/DylanMeeus","followers_url":"https://api.github.com/users/DylanMeeus/followers","following_url":"https://api.github.com/users/DylanMeeus/following{/other_user}","gists_url":"https://api.github.com/users/DylanMeeus/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanMeeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanMeeus/subscriptions","organizations_url":"https://api.github.com/users/DylanMeeus/orgs","repos_url":"https://api.github.com/users/DylanMeeus/repos","events_url":"https://api.github.com/users/DylanMeeus/events{/privacy}","received_events_url":"https://api.github.com/users/DylanMeeus/received_events","type":"User","site_admin":false},"repo":{"id":58781329,"name":"ephemeral","full_name":"DylanMeeus/ephemeral","owner":{"login":"DylanMeeus","id":2179051,"avatar_url":"https://avatars.githubusercontent.com/u/2179051?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanMeeus","html_url":"https://github.com/DylanMeeus","followers_url":"https://api.github.com/users/DylanMeeus/followers","following_url":"https://api.github.com/users/DylanMeeus/following{/other_user}","gists_url":"https://api.github.com/users/DylanMeeus/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanMeeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanMeeus/subscriptions","organizations_url":"https://api.github.com/users/DylanMeeus/orgs","repos_url":"https://api.github.com/users/DylanMeeus/repos","events_url":"https://api.github.com/users/DylanMeeus/events{/privacy}","received_events_url":"https://api.github.com/users/DylanMeeus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DylanMeeus/ephemeral","description":"","fork":false,"url":"https://api.github.com/repos/DylanMeeus/ephemeral","forks_url":"https://api.github.com/repos/DylanMeeus/ephemeral/forks","keys_url":"https://api.github.com/repos/DylanMeeus/ephemeral/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DylanMeeus/ephemeral/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DylanMeeus/ephemeral/teams","hooks_url":"https://api.github.com/repos/DylanMeeus/ephemeral/hooks","issue_events_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/events{/number}","events_url":"https://api.github.com/repos/DylanMeeus/ephemeral/events","assignees_url":"https://api.github.com/repos/DylanMeeus/ephemeral/assignees{/user}","branches_url":"https://api.github.com/repos/DylanMeeus/ephemeral/branches{/branch}","tags_url":"https://api.github.com/repos/DylanMeeus/ephemeral/tags","blobs_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/refs{/sha}","trees_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DylanMeeus/ephemeral/statuses/{sha}","languages_url":"https://api.github.com/repos/DylanMeeus/ephemeral/languages","stargazers_url":"https://api.github.com/repos/DylanMeeus/ephemeral/stargazers","contributors_url":"https://api.github.com/repos/DylanMeeus/ephemeral/contributors","subscribers_url":"https://api.github.com/repos/DylanMeeus/ephemeral/subscribers","subscription_url":"https://api.github.com/repos/DylanMeeus/ephemeral/subscription","commits_url":"https://api.github.com/repos/DylanMeeus/ephemeral/commits{/sha}","git_commits_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/commits{/sha}","comments_url":"https://api.github.com/repos/DylanMeeus/ephemeral/comments{/number}","issue_comment_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/comments{/number}","contents_url":"https://api.github.com/repos/DylanMeeus/ephemeral/contents/{+path}","compare_url":"https://api.github.com/repos/DylanMeeus/ephemeral/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DylanMeeus/ephemeral/merges","archive_url":"https://api.github.com/repos/DylanMeeus/ephemeral/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DylanMeeus/ephemeral/downloads","issues_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues{/number}","pulls_url":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls{/number}","milestones_url":"https://api.github.com/repos/DylanMeeus/ephemeral/milestones{/number}","notifications_url":"https://api.github.com/repos/DylanMeeus/ephemeral/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DylanMeeus/ephemeral/labels{/name}","releases_url":"https://api.github.com/repos/DylanMeeus/ephemeral/releases{/id}","deployments_url":"https://api.github.com/repos/DylanMeeus/ephemeral/deployments","created_at":"2016-05-14T00:23:07Z","updated_at":"2016-05-14T01:08:11Z","pushed_at":"2016-05-17T17:39:01Z","git_url":"git://github.com/DylanMeeus/ephemeral.git","ssh_url":"git@github.com:DylanMeeus/ephemeral.git","clone_url":"https://github.com/DylanMeeus/ephemeral.git","svn_url":"https://github.com/DylanMeeus/ephemeral","homepage":null,"size":355,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/25"},"html":{"href":"https://github.com/DylanMeeus/ephemeral/pull/25"},"issue":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/25"},"comments":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/statuses/48d336fd358b9428708551484e3509ee71b28ce5"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":647,"deletions":16,"changed_files":12}}