{"action":"created","comment":{"url":"https://api.github.com/repos/llabake/RoRPlayGround/pulls/comments/231829876","pull_request_review_id":172884950,"id":231829876,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTgyOTg3Ng==","diff_hunk":"@@ -0,0 +1,20 @@\n+class SessionsController < ApplicationController\n+  def new\n+  end\n+\n+  def create\n+    user = User.find_by(email: params[:session][:email].downcase)\n+    if user && user.authenticate(params[:session][:password])\n+      log_in user\n+      redirect_to user\n+    else\n+      flash.now[:danger] = 'Invalid email/password combination' # Not quite right!","path":"app/controllers/sessions_controller.rb","position":11,"original_position":11,"commit_id":"1d7efc7fad6027fabe66644e8d534bd54530bf52","original_commit_id":"1d7efc7fad6027fabe66644e8d534bd54530bf52","user":{"login":"llabake","id":29184825,"node_id":"MDQ6VXNlcjI5MTg0ODI1","avatar_url":"https://avatars2.githubusercontent.com/u/29184825?v=4","gravatar_id":"","url":"https://api.github.com/users/llabake","html_url":"https://github.com/llabake","followers_url":"https://api.github.com/users/llabake/followers","following_url":"https://api.github.com/users/llabake/following{/other_user}","gists_url":"https://api.github.com/users/llabake/gists{/gist_id}","starred_url":"https://api.github.com/users/llabake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llabake/subscriptions","organizations_url":"https://api.github.com/users/llabake/orgs","repos_url":"https://api.github.com/users/llabake/repos","events_url":"https://api.github.com/users/llabake/events{/privacy}","received_events_url":"https://api.github.com/users/llabake/received_events","type":"User","site_admin":false},"body":"🤦‍♂️ ","created_at":"2018-11-08T10:13:02Z","updated_at":"2018-11-08T10:13:02Z","html_url":"https://github.com/llabake/RoRPlayGround/pull/7#discussion_r231829876","pull_request_url":"https://api.github.com/repos/llabake/RoRPlayGround/pulls/7","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/llabake/RoRPlayGround/pulls/comments/231829876"},"html":{"href":"https://github.com/llabake/RoRPlayGround/pull/7#discussion_r231829876"},"pull_request":{"href":"https://api.github.com/repos/llabake/RoRPlayGround/pulls/7"}},"in_reply_to_id":231761603},"pull_request":{"url":"https://api.github.com/repos/llabake/RoRPlayGround/pulls/7","id":229117335,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5MTE3MzM1","html_url":"https://github.com/llabake/RoRPlayGround/pull/7","diff_url":"https://github.com/llabake/RoRPlayGround/pull/7.diff","patch_url":"https://github.com/llabake/RoRPlayGround/pull/7.patch","issue_url":"https://api.github.com/repos/llabake/RoRPlayGround/issues/7","number":7,"state":"open","locked":false,"title":"Implement basic login","user":{"login":"llabake","id":29184825,"node_id":"MDQ6VXNlcjI5MTg0ODI1","avatar_url":"https://avatars2.githubusercontent.com/u/29184825?v=4","gravatar_id":"","url":"https://api.github.com/users/llabake","html_url":"https://github.com/llabake","followers_url":"https://api.github.com/users/llabake/followers","following_url":"https://api.github.com/users/llabake/following{/other_user}","gists_url":"https://api.github.com/users/llabake/gists{/gist_id}","starred_url":"https://api.github.com/users/llabake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llabake/subscriptions","organizations_url":"https://api.github.com/users/llabake/orgs","repos_url":"https://api.github.com/users/llabake/repos","events_url":"https://api.github.com/users/llabake/events{/privacy}","received_events_url":"https://api.github.com/users/llabake/received_events","type":"User","site_admin":false},"body":"#### Sign In\r\n- use the session method to maintain state \r\n- create a login form to create a new session to log a user in\r\n- use flash.now to show flash messages on rendered page\r\n","created_at":"2018-11-07T17:58:57Z","updated_at":"2018-11-08T10:13:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3543290a8d9bcfcdcbd915dd6e7f79b18bf5c075","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/llabake/RoRPlayGround/pulls/7/commits","review_comments_url":"https://api.github.com/repos/llabake/RoRPlayGround/pulls/7/comments","review_comment_url":"https://api.github.com/repos/llabake/RoRPlayGround/pulls/comments{/number}","comments_url":"https://api.github.com/repos/llabake/RoRPlayGround/issues/7/comments","statuses_url":"https://api.github.com/repos/llabake/RoRPlayGround/statuses/1d7efc7fad6027fabe66644e8d534bd54530bf52","head":{"label":"llabake:ft-basic-login","ref":"ft-basic-login","sha":"1d7efc7fad6027fabe66644e8d534bd54530bf52","user":{"login":"llabake","id":29184825,"node_id":"MDQ6VXNlcjI5MTg0ODI1","avatar_url":"https://avatars2.githubusercontent.com/u/29184825?v=4","gravatar_id":"","url":"https://api.github.com/users/llabake","html_url":"https://github.com/llabake","followers_url":"https://api.github.com/users/llabake/followers","following_url":"https://api.github.com/users/llabake/following{/other_user}","gists_url":"https://api.github.com/users/llabake/gists{/gist_id}","starred_url":"https://api.github.com/users/llabake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llabake/subscriptions","organizations_url":"https://api.github.com/users/llabake/orgs","repos_url":"https://api.github.com/users/llabake/repos","events_url":"https://api.github.com/users/llabake/events{/privacy}","received_events_url":"https://api.github.com/users/llabake/received_events","type":"User","site_admin":false},"repo":{"id":152108861,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIxMDg4NjE=","name":"RoRPlayGround","full_name":"llabake/RoRPlayGround","private":false,"owner":{"login":"llabake","id":29184825,"node_id":"MDQ6VXNlcjI5MTg0ODI1","avatar_url":"https://avatars2.githubusercontent.com/u/29184825?v=4","gravatar_id":"","url":"https://api.github.com/users/llabake","html_url":"https://github.com/llabake","followers_url":"https://api.github.com/users/llabake/followers","following_url":"https://api.github.com/users/llabake/following{/other_user}","gists_url":"https://api.github.com/users/llabake/gists{/gist_id}","starred_url":"https://api.github.com/users/llabake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llabake/subscriptions","organizations_url":"https://api.github.com/users/llabake/orgs","repos_url":"https://api.github.com/users/llabake/repos","events_url":"https://api.github.com/users/llabake/events{/privacy}","received_events_url":"https://api.github.com/users/llabake/received_events","type":"User","site_admin":false},"html_url":"https://github.com/llabake/RoRPlayGround","description":null,"fork":false,"url":"https://api.github.com/repos/llabake/RoRPlayGround","forks_url":"https://api.github.com/repos/llabake/RoRPlayGround/forks","keys_url":"https://api.github.com/repos/llabake/RoRPlayGround/keys{/key_id}","collaborators_url":"https://api.github.com/repos/llabake/RoRPlayGround/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/llabake/RoRPlayGround/teams","hooks_url":"https://api.github.com/repos/llabake/RoRPlayGround/hooks","issue_events_url":"https://api.github.com/repos/llabake/RoRPlayGround/issues/events{/number}","events_url":"https://api.github.com/repos/llabake/RoRPlayGround/events","assignees_url":"https://api.github.com/repos/llabake/RoRPlayGround/assignees{/user}","branches_url":"https://api.github.com/repos/llabake/RoRPlayGround/branches{/branch}","tags_url":"https://api.github.com/repos/llabake/RoRPlayGround/tags","blobs_url":"https://api.github.com/repos/llabake/RoRPlayGround/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/llabake/RoRPlayGround/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/llabake/RoRPlayGround/git/refs{/sha}","trees_url":"https://api.github.com/repos/llabake/RoRPlayGround/git/trees{/sha}","statuses_url":"https://api.github.com/repos/llabake/RoRPlayGround/statuses/{sha}","languages_url":"https://api.github.com/repos/llabake/RoRPlayGround/languages","stargazers_url":"https://api.github.com/repos/llabake/RoRPlayGround/stargazers","contributors_url":"https://api.github.com/repos/llabake/RoRPlayGround/contributors","subscribers_url":"https://api.github.com/repos/llabake/RoRPlayGround/subscribers","subscription_url":"https://api.github.com/repos/llabake/RoRPlayGround/subscription","commits_url":"https://api.github.com/repos/llabake/RoRPlayGround/commits{/sha}","git_commits_url":"https://api.github.com/repos/llabake/RoRPlayGround/git/commits{/sha}","comments_url":"https://api.github.com/repos/llabake/RoRPlayGround/comments{/number}","issue_comment_url":"https://api.github.com/repos/llabake/RoRPlayGround/issues/comments{/number}","contents_url":"https://api.github.com/repos/llabake/RoRPlayGround/contents/{+path}","compare_url":"https://api.github.com/repos/llabake/RoRPlayGround/compare/{base}...{head}","merges_url":"https://api.github.com/repos/llabake/RoRPlayGround/merges","archive_url":"https://api.github.com/repos/llabake/RoRPlayGround/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/llabake/RoRPlayGround/downloads","issues_url":"https://api.github.com/repos/llabake/RoRPlayGround/issues{/number}","pulls_url":"https://api.github.com/repos/llabake/RoRPlayGround/pulls{/number}","milestones_url":"https://api.github.com/repos/llabake/RoRPlayGround/milestones{/number}","notifications_url":"https://api.github.com/repos/llabake/RoRPlayGround/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/llabake/RoRPlayGround/labels{/name}","releases_url":"https://api.github.com/repos/llabake/RoRPlayGround/releases{/id}","deployments_url":"https://api.github.com/repos/llabake/RoRPlayGround/deployments","created_at":"2018-10-08T16:06:20Z","updated_at":"2018-11-06T06:47:47Z","pushed_at":"2018-11-07T17:58:57Z","git_url":"git://github.com/llabake/RoRPlayGround.git","ssh_url":"git@github.com:llabake/RoRPlayGround.git","clone_url":"https://github.com/llabake/RoRPlayGround.git","svn_url":"https://github.com/llabake/RoRPlayGround","homepage":null,"size":218,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"llabake:develop","ref":"develop","sha":"930bed3ce61541c5beb9c9b5c98d96da21ddc099","user":{"login":"llabake","id":29184825,"node_id":"MDQ6VXNlcjI5MTg0ODI1","avatar_url":"https://avatars2.githubusercontent.com/u/29184825?v=4","gravatar_id":"","url":"https://api.github.com/users/llabake","html_url":"https://github.com/llabake","followers_url":"https://api.github.com/users/llabake/followers","following_url":"https://api.github.com/users/llabake/following{/other_user}","gists_url":"https://api.github.com/users/llabake/gists{/gist_id}","starred_url":"https://api.github.com/users/llabake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llabake/subscriptions","organizations_url":"https://api.github.com/users/llabake/orgs","repos_url":"https://api.github.com/users/llabake/repos","events_url":"https://api.github.com/users/llabake/events{/privacy}","received_events_url":"https://api.github.com/users/llabake/received_events","type":"User","site_admin":false},"repo":{"id":152108861,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIxMDg4NjE=","name":"RoRPlayGround","full_name":"llabake/RoRPlayGround","private":false,"owner":{"login":"llabake","id":29184825,"node_id":"MDQ6VXNlcjI5MTg0ODI1","avatar_url":"https://avatars2.githubusercontent.com/u/29184825?v=4","gravatar_id":"","url":"https://api.github.com/users/llabake","html_url":"https://github.com/llabake","followers_url":"https://api.github.com/users/llabake/followers","following_url":"https://api.github.com/users/llabake/following{/other_user}","gists_url":"https://api.github.com/users/llabake/gists{/gist_id}","starred_url":"https://api.github.com/users/llabake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llabake/subscriptions","organizations_url":"https://api.github.com/users/llabake/orgs","repos_url":"https://api.github.com/users/llabake/repos","events_url":"https://api.github.com/users/llabake/events{/privacy}","received_events_url":"https://api.github.com/users/llabake/received_events","type":"User","site_admin":false},"html_url":"https://github.com/llabake/RoRPlayGround","description":null,"fork":false,"url":"https://api.github.com/repos/llabake/RoRPlayGround","forks_url":"https://api.github.com/repos/llabake/RoRPlayGround/forks","keys_url":"https://api.github.com/repos/llabake/RoRPlayGround/keys{/key_id}","collaborators_url":"https://api.github.com/repos/llabake/RoRPlayGround/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/llabake/RoRPlayGround/teams","hooks_url":"https://api.github.com/repos/llabake/RoRPlayGround/hooks","issue_events_url":"https://api.github.com/repos/llabake/RoRPlayGround/issues/events{/number}","events_url":"https://api.github.com/repos/llabake/RoRPlayGround/events","assignees_url":"https://api.github.com/repos/llabake/RoRPlayGround/assignees{/user}","branches_url":"https://api.github.com/repos/llabake/RoRPlayGround/branches{/branch}","tags_url":"https://api.github.com/repos/llabake/RoRPlayGround/tags","blobs_url":"https://api.github.com/repos/llabake/RoRPlayGround/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/llabake/RoRPlayGround/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/llabake/RoRPlayGround/git/refs{/sha}","trees_url":"https://api.github.com/repos/llabake/RoRPlayGround/git/trees{/sha}","statuses_url":"https://api.github.com/repos/llabake/RoRPlayGround/statuses/{sha}","languages_url":"https://api.github.com/repos/llabake/RoRPlayGround/languages","stargazers_url":"https://api.github.com/repos/llabake/RoRPlayGround/stargazers","contributors_url":"https://api.github.com/repos/llabake/RoRPlayGround/contributors","subscribers_url":"https://api.github.com/repos/llabake/RoRPlayGround/subscribers","subscription_url":"https://api.github.com/repos/llabake/RoRPlayGround/subscription","commits_url":"https://api.github.com/repos/llabake/RoRPlayGround/commits{/sha}","git_commits_url":"https://api.github.com/repos/llabake/RoRPlayGround/git/commits{/sha}","comments_url":"https://api.github.com/repos/llabake/RoRPlayGround/comments{/number}","issue_comment_url":"https://api.github.com/repos/llabake/RoRPlayGround/issues/comments{/number}","contents_url":"https://api.github.com/repos/llabake/RoRPlayGround/contents/{+path}","compare_url":"https://api.github.com/repos/llabake/RoRPlayGround/compare/{base}...{head}","merges_url":"https://api.github.com/repos/llabake/RoRPlayGround/merges","archive_url":"https://api.github.com/repos/llabake/RoRPlayGround/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/llabake/RoRPlayGround/downloads","issues_url":"https://api.github.com/repos/llabake/RoRPlayGround/issues{/number}","pulls_url":"https://api.github.com/repos/llabake/RoRPlayGround/pulls{/number}","milestones_url":"https://api.github.com/repos/llabake/RoRPlayGround/milestones{/number}","notifications_url":"https://api.github.com/repos/llabake/RoRPlayGround/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/llabake/RoRPlayGround/labels{/name}","releases_url":"https://api.github.com/repos/llabake/RoRPlayGround/releases{/id}","deployments_url":"https://api.github.com/repos/llabake/RoRPlayGround/deployments","created_at":"2018-10-08T16:06:20Z","updated_at":"2018-11-06T06:47:47Z","pushed_at":"2018-11-07T17:58:57Z","git_url":"git://github.com/llabake/RoRPlayGround.git","ssh_url":"git@github.com:llabake/RoRPlayGround.git","clone_url":"https://github.com/llabake/RoRPlayGround.git","svn_url":"https://github.com/llabake/RoRPlayGround","homepage":null,"size":218,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/llabake/RoRPlayGround/pulls/7"},"html":{"href":"https://github.com/llabake/RoRPlayGround/pull/7"},"issue":{"href":"https://api.github.com/repos/llabake/RoRPlayGround/issues/7"},"comments":{"href":"https://api.github.com/repos/llabake/RoRPlayGround/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/llabake/RoRPlayGround/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/llabake/RoRPlayGround/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/llabake/RoRPlayGround/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/llabake/RoRPlayGround/statuses/1d7efc7fad6027fabe66644e8d534bd54530bf52"}},"author_association":"OWNER"}}
{"actor":{"display_login":"llabake"}}