{"action":"created","comment":{"url":"https://api.github.com/repos/andela/ah-scorpion-frontend/pulls/comments/215288533","pull_request_review_id":152518093,"id":215288533,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTI4ODUzMw==","diff_hunk":"@@ -0,0 +1,104 @@\n+import React, { Component } from 'react';\n+import { connect } from 'react-redux';\n+import PropTypes from 'prop-types';\n+import Footer from '../components/Footer';\n+import NavBar from '../components/NavBar';\n+import reset from '../actions/resetAction';\n+\n+class ResetForm extends Component {\n+  state = {\n+    email: '',\n+  };\n+\n+  handleChange = event => {\n+    this.setState({ email: event.target.value });\n+  };\n+\n+  handleSubmit = event => {\n+    event.preventDefault();\n+    this.props.dispatch(reset(this.state.email));\n+  };\n+\n+  renderForm = () => (\n+    <React.Fragment>\n+      <NavBar />\n+      <main style={{ marginTop: '2.5em' }}>\n+        <div className=\"container p-5 signup-container\">\n+          {this.props.reset.errors.error ? (\n+            <div\n+              className=\"alert alert-danger\"\n+              style={{ textAlign: 'center' }}\n+              role=\"alert\"\n+            >\n+              {this.props.reset.errors.error[0]}\n+            </div>\n+          ) : null}\n+\n+          <div className=\"card form-bg\">\n+            <div className=\"card-header text-center form-bg\">\n+              <h2>Password Reset</h2>\n+            </div>\n+            <form\n+              className=\"pt-5 pb-2 px-5 form-bg\"\n+              onSubmit={this.handleSubmit}\n+            >\n+              <div className=\"form-group\">\n+                <input\n+                  required\n+                  type=\"email\"\n+                  className=\"form-control\"\n+                  name=\"email\"\n+                  placeholder=\"Email Address\"\n+                  value={this.state.email}\n+                  onChange={this.handleChange}\n+                />\n+              </div>\n+\n+              <div className=\"text-center\">\n+                <button\n+                  className=\"btn btn-primary\"\n+                  disabled={this.props.reset.sending}\n+                >\n+                  {this.props.reset.sending ? 'Sending...' : 'Submit'}\n+                </button>\n+              </div>\n+              <br />\n+            </form>\n+          </div>\n+        </div>\n+      </main>\n+      <Footer />\n+    </React.Fragment>\n+  );\n+\n+  renderSuccess = () => (\n+    <main style={{ marginTop: '2.5em' }}>\n+      <div className=\"container p-5 signup-container\">\n+        <div\n+          className=\"alert alert-success\"\n+          style={{ textAlign: 'center' }}\n+          role=\"alert\"\n+        >\n+          <p>Please Check Your Email For Further Instructions</p>\n+        </div>\n+      </div>\n+    </main>\n+  );\n+\n+  render() {\n+    return (\n+      <div>\n+        {this.props.reset.sent ? this.renderSuccess() : this.renderForm()}\n+      </div>\n+    );\n+  }\n+}\n+\n+ResetForm.propTypes = {\n+  reset: PropTypes.object.isRequired,","path":"src/containers/ResetPassword.js","position":98,"original_position":98,"commit_id":"b7730b4e49f3eb1b916d8cf59e194a2a3af20757","original_commit_id":"b7730b4e49f3eb1b916d8cf59e194a2a3af20757","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prop type `object` is forbidden                                                      react/forbid-prop-types","created_at":"2018-09-05T14:17:05Z","updated_at":"2018-09-05T14:17:07Z","html_url":"https://github.com/andela/ah-scorpion-frontend/pull/15#discussion_r215288533","pull_request_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/pulls/15","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/ah-scorpion-frontend/pulls/comments/215288533"},"html":{"href":"https://github.com/andela/ah-scorpion-frontend/pull/15#discussion_r215288533"},"pull_request":{"href":"https://api.github.com/repos/andela/ah-scorpion-frontend/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/andela/ah-scorpion-frontend/pulls/15","id":213287534,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzMjg3NTM0","html_url":"https://github.com/andela/ah-scorpion-frontend/pull/15","diff_url":"https://github.com/andela/ah-scorpion-frontend/pull/15.diff","patch_url":"https://github.com/andela/ah-scorpion-frontend/pull/15.patch","issue_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/issues/15","number":15,"state":"open","locked":false,"title":"#159993336  Password Reset ","user":{"login":"RuthNjeri","id":7622875,"node_id":"MDQ6VXNlcjc2MjI4NzU=","avatar_url":"https://avatars3.githubusercontent.com/u/7622875?v=4","gravatar_id":"","url":"https://api.github.com/users/RuthNjeri","html_url":"https://github.com/RuthNjeri","followers_url":"https://api.github.com/users/RuthNjeri/followers","following_url":"https://api.github.com/users/RuthNjeri/following{/other_user}","gists_url":"https://api.github.com/users/RuthNjeri/gists{/gist_id}","starred_url":"https://api.github.com/users/RuthNjeri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RuthNjeri/subscriptions","organizations_url":"https://api.github.com/users/RuthNjeri/orgs","repos_url":"https://api.github.com/users/RuthNjeri/repos","events_url":"https://api.github.com/users/RuthNjeri/events{/privacy}","received_events_url":"https://api.github.com/users/RuthNjeri/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nIt Implements the password reset link in the frontend.\r\n#### Description of Task to be completed?\r\nDisplay a password reset form to the user.\r\nDisplay a form for the user to enter new password after clicking the link in the email.\r\n#### How should this be manually tested?\r\npull from the branch ft-password-reset-159993336\r\nrun npm install to install dependencies\r\nrun npm start -s to start the server\r\nin the browser tab opened, navigate to the page for localhost:3000/reset\r\n#### What are the relevant pivotal tracker stories?\r\n[#159993336](https://www.pivotaltracker.com/story/show/159993336)","created_at":"2018-09-05T13:08:22Z","updated_at":"2018-09-05T14:17:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a6e408f0c4b619a494d1dde0ee3ad0e70d60c6f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/pulls/15/commits","review_comments_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/pulls/15/comments","review_comment_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/issues/15/comments","statuses_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/statuses/b7730b4e49f3eb1b916d8cf59e194a2a3af20757","head":{"label":"andela:ft-password-reset-159993336","ref":"ft-password-reset-159993336","sha":"b7730b4e49f3eb1b916d8cf59e194a2a3af20757","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":145820513,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU4MjA1MTM=","name":"ah-scorpion-frontend","full_name":"andela/ah-scorpion-frontend","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/ah-scorpion-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-scorpion-frontend","forks_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/forks","keys_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/teams","hooks_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/events","assignees_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/tags","blobs_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/languages","stargazers_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/subscription","commits_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/merges","archive_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/downloads","issues_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/deployments","created_at":"2018-08-23T07:55:30Z","updated_at":"2018-09-04T14:11:37Z","pushed_at":"2018-09-05T14:15:34Z","git_url":"git://github.com/andela/ah-scorpion-frontend.git","ssh_url":"git@github.com:andela/ah-scorpion-frontend.git","clone_url":"https://github.com/andela/ah-scorpion-frontend.git","svn_url":"https://github.com/andela/ah-scorpion-frontend","homepage":null,"size":7152,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":1,"open_issues":4,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"97c602ef59d18fa36ff7b47f80a75b88f96886a8","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":145820513,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU4MjA1MTM=","name":"ah-scorpion-frontend","full_name":"andela/ah-scorpion-frontend","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/ah-scorpion-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-scorpion-frontend","forks_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/forks","keys_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/teams","hooks_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/events","assignees_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/tags","blobs_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/languages","stargazers_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/subscription","commits_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/merges","archive_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/downloads","issues_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-scorpion-frontend/deployments","created_at":"2018-08-23T07:55:30Z","updated_at":"2018-09-04T14:11:37Z","pushed_at":"2018-09-05T14:15:34Z","git_url":"git://github.com/andela/ah-scorpion-frontend.git","ssh_url":"git@github.com:andela/ah-scorpion-frontend.git","clone_url":"https://github.com/andela/ah-scorpion-frontend.git","svn_url":"https://github.com/andela/ah-scorpion-frontend","homepage":null,"size":7152,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":1,"open_issues":4,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/ah-scorpion-frontend/pulls/15"},"html":{"href":"https://github.com/andela/ah-scorpion-frontend/pull/15"},"issue":{"href":"https://api.github.com/repos/andela/ah-scorpion-frontend/issues/15"},"comments":{"href":"https://api.github.com/repos/andela/ah-scorpion-frontend/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/ah-scorpion-frontend/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/ah-scorpion-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/ah-scorpion-frontend/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/andela/ah-scorpion-frontend/statuses/b7730b4e49f3eb1b916d8cf59e194a2a3af20757"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}