{"action":"created","comment":{"url":"https://api.github.com/repos/Gizra/generator-hedley/pulls/comments/33664700","id":33664700,"diff_hunk":"@@ -0,0 +1,38 @@\n+<?php\n+\n+/**\n+ * @file\n+ * Contains SkeletonResetPasswordResource.\n+ */\n+\n+class SkeletonResetPasswordResource extends \\SkeletonTokenNotifierResource {\n+  /**\n+   * Overrides \\RestfulEntityBase::controllers.\n+   */\n+  protected $controllers = array(\n+    '' => array(\n+      \\RestfulInterface::POST => 'resetPassword',\n+    ),\n+  );\n+\n+  /**\n+   * Send \"Reset Password\" email.\n+   *\n+   * @return array\n+   */\n+  public function resetPassword() {\n+\n+    $email = $this->request['email'];\n+\n+    $account = user_load_by_mail($email);","path":"app/templates/skeleton/modules/custom/skeleton_restful/plugins/restful/user/reset_password/SkeletonResetPasswordResource.class.php","position":27,"original_position":27,"commit_id":"3673dcc3866c30a67aca05f42e83b78ba3a68463","original_commit_id":"3673dcc3866c30a67aca05f42e83b78ba3a68463","user":{"login":"amitaibu","id":125707,"avatar_url":"https://avatars.githubusercontent.com/u/125707?v=3","gravatar_id":"","url":"https://api.github.com/users/amitaibu","html_url":"https://github.com/amitaibu","followers_url":"https://api.github.com/users/amitaibu/followers","following_url":"https://api.github.com/users/amitaibu/following{/other_user}","gists_url":"https://api.github.com/users/amitaibu/gists{/gist_id}","starred_url":"https://api.github.com/users/amitaibu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitaibu/subscriptions","organizations_url":"https://api.github.com/users/amitaibu/orgs","repos_url":"https://api.github.com/users/amitaibu/repos","events_url":"https://api.github.com/users/amitaibu/events{/privacy}","received_events_url":"https://api.github.com/users/amitaibu/received_events","type":"User","site_admin":false},"body":"```php\r\nif (!$account = user_load_by_mail($email)) {\r\n  throw new \\RestfulBadRequestException(....)\r\n}\r\n```","created_at":"2015-07-01T10:02:17Z","updated_at":"2015-07-01T10:02:17Z","html_url":"https://github.com/Gizra/generator-hedley/pull/68#discussion_r33664700","pull_request_url":"https://api.github.com/repos/Gizra/generator-hedley/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/Gizra/generator-hedley/pulls/comments/33664700"},"html":{"href":"https://github.com/Gizra/generator-hedley/pull/68#discussion_r33664700"},"pull_request":{"href":"https://api.github.com/repos/Gizra/generator-hedley/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/Gizra/generator-hedley/pulls/68","id":37976356,"html_url":"https://github.com/Gizra/generator-hedley/pull/68","diff_url":"https://github.com/Gizra/generator-hedley/pull/68.diff","patch_url":"https://github.com/Gizra/generator-hedley/pull/68.patch","issue_url":"https://api.github.com/repos/Gizra/generator-hedley/issues/68","number":68,"state":"open","locked":false,"title":"Registration & Reset password","user":{"login":"ordavidil","id":5985683,"avatar_url":"https://avatars.githubusercontent.com/u/5985683?v=3","gravatar_id":"","url":"https://api.github.com/users/ordavidil","html_url":"https://github.com/ordavidil","followers_url":"https://api.github.com/users/ordavidil/followers","following_url":"https://api.github.com/users/ordavidil/following{/other_user}","gists_url":"https://api.github.com/users/ordavidil/gists{/gist_id}","starred_url":"https://api.github.com/users/ordavidil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ordavidil/subscriptions","organizations_url":"https://api.github.com/users/ordavidil/orgs","repos_url":"https://api.github.com/users/ordavidil/repos","events_url":"https://api.github.com/users/ordavidil/events{/privacy}","received_events_url":"https://api.github.com/users/ordavidil/received_events","type":"User","site_admin":false},"body":"![selection_314](https://cloud.githubusercontent.com/assets/5985683/8225650/edbf04d0-159f-11e5-83ac-b684dbfa3745.png)\r\n\r\n![selection_315](https://cloud.githubusercontent.com/assets/5985683/8225651/f072f09c-159f-11e5-8973-00a04f7501be.png)\r\n\r\n![selection_324](https://cloud.githubusercontent.com/assets/5985683/8281600/4001d5b0-18f2-11e5-99d5-37e38274287c.png)\r\n\r\n![selection_325](https://cloud.githubusercontent.com/assets/5985683/8281603/43d4a7ee-18f2-11e5-858f-c0e8ac61d769.png)\r\n","created_at":"2015-06-18T06:54:14Z","updated_at":"2015-07-01T10:02:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d2616e5f8371b630285ecd35f16ebcb5d3c40ecf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Gizra/generator-hedley/pulls/68/commits","review_comments_url":"https://api.github.com/repos/Gizra/generator-hedley/pulls/68/comments","review_comment_url":"https://api.github.com/repos/Gizra/generator-hedley/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Gizra/generator-hedley/issues/68/comments","statuses_url":"https://api.github.com/repos/Gizra/generator-hedley/statuses/3673dcc3866c30a67aca05f42e83b78ba3a68463","head":{"label":"ordavidil:reset-password","ref":"reset-password","sha":"3673dcc3866c30a67aca05f42e83b78ba3a68463","user":{"login":"ordavidil","id":5985683,"avatar_url":"https://avatars.githubusercontent.com/u/5985683?v=3","gravatar_id":"","url":"https://api.github.com/users/ordavidil","html_url":"https://github.com/ordavidil","followers_url":"https://api.github.com/users/ordavidil/followers","following_url":"https://api.github.com/users/ordavidil/following{/other_user}","gists_url":"https://api.github.com/users/ordavidil/gists{/gist_id}","starred_url":"https://api.github.com/users/ordavidil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ordavidil/subscriptions","organizations_url":"https://api.github.com/users/ordavidil/orgs","repos_url":"https://api.github.com/users/ordavidil/repos","events_url":"https://api.github.com/users/ordavidil/events{/privacy}","received_events_url":"https://api.github.com/users/ordavidil/received_events","type":"User","site_admin":false},"repo":{"id":37447903,"name":"generator-hedley","full_name":"ordavidil/generator-hedley","owner":{"login":"ordavidil","id":5985683,"avatar_url":"https://avatars.githubusercontent.com/u/5985683?v=3","gravatar_id":"","url":"https://api.github.com/users/ordavidil","html_url":"https://github.com/ordavidil","followers_url":"https://api.github.com/users/ordavidil/followers","following_url":"https://api.github.com/users/ordavidil/following{/other_user}","gists_url":"https://api.github.com/users/ordavidil/gists{/gist_id}","starred_url":"https://api.github.com/users/ordavidil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ordavidil/subscriptions","organizations_url":"https://api.github.com/users/ordavidil/orgs","repos_url":"https://api.github.com/users/ordavidil/repos","events_url":"https://api.github.com/users/ordavidil/events{/privacy}","received_events_url":"https://api.github.com/users/ordavidil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ordavidil/generator-hedley","description":"Scaffold a headless Drupal backend, Angular app client,  and Behat tests","fork":true,"url":"https://api.github.com/repos/ordavidil/generator-hedley","forks_url":"https://api.github.com/repos/ordavidil/generator-hedley/forks","keys_url":"https://api.github.com/repos/ordavidil/generator-hedley/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ordavidil/generator-hedley/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ordavidil/generator-hedley/teams","hooks_url":"https://api.github.com/repos/ordavidil/generator-hedley/hooks","issue_events_url":"https://api.github.com/repos/ordavidil/generator-hedley/issues/events{/number}","events_url":"https://api.github.com/repos/ordavidil/generator-hedley/events","assignees_url":"https://api.github.com/repos/ordavidil/generator-hedley/assignees{/user}","branches_url":"https://api.github.com/repos/ordavidil/generator-hedley/branches{/branch}","tags_url":"https://api.github.com/repos/ordavidil/generator-hedley/tags","blobs_url":"https://api.github.com/repos/ordavidil/generator-hedley/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ordavidil/generator-hedley/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ordavidil/generator-hedley/git/refs{/sha}","trees_url":"https://api.github.com/repos/ordavidil/generator-hedley/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ordavidil/generator-hedley/statuses/{sha}","languages_url":"https://api.github.com/repos/ordavidil/generator-hedley/languages","stargazers_url":"https://api.github.com/repos/ordavidil/generator-hedley/stargazers","contributors_url":"https://api.github.com/repos/ordavidil/generator-hedley/contributors","subscribers_url":"https://api.github.com/repos/ordavidil/generator-hedley/subscribers","subscription_url":"https://api.github.com/repos/ordavidil/generator-hedley/subscription","commits_url":"https://api.github.com/repos/ordavidil/generator-hedley/commits{/sha}","git_commits_url":"https://api.github.com/repos/ordavidil/generator-hedley/git/commits{/sha}","comments_url":"https://api.github.com/repos/ordavidil/generator-hedley/comments{/number}","issue_comment_url":"https://api.github.com/repos/ordavidil/generator-hedley/issues/comments{/number}","contents_url":"https://api.github.com/repos/ordavidil/generator-hedley/contents/{+path}","compare_url":"https://api.github.com/repos/ordavidil/generator-hedley/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ordavidil/generator-hedley/merges","archive_url":"https://api.github.com/repos/ordavidil/generator-hedley/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ordavidil/generator-hedley/downloads","issues_url":"https://api.github.com/repos/ordavidil/generator-hedley/issues{/number}","pulls_url":"https://api.github.com/repos/ordavidil/generator-hedley/pulls{/number}","milestones_url":"https://api.github.com/repos/ordavidil/generator-hedley/milestones{/number}","notifications_url":"https://api.github.com/repos/ordavidil/generator-hedley/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ordavidil/generator-hedley/labels{/name}","releases_url":"https://api.github.com/repos/ordavidil/generator-hedley/releases{/id}","created_at":"2015-06-15T06:37:56Z","updated_at":"2015-06-23T12:14:50Z","pushed_at":"2015-06-25T15:58:36Z","git_url":"git://github.com/ordavidil/generator-hedley.git","ssh_url":"git@github.com:ordavidil/generator-hedley.git","clone_url":"https://github.com/ordavidil/generator-hedley.git","svn_url":"https://github.com/ordavidil/generator-hedley","homepage":"http://www.gizra.com/content/yo-hedley","size":339,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"Gizra:master","ref":"master","sha":"44107e3b8c829a24ebad73e66d2f070cfac09500","user":{"login":"Gizra","id":2484795,"avatar_url":"https://avatars.githubusercontent.com/u/2484795?v=3","gravatar_id":"","url":"https://api.github.com/users/Gizra","html_url":"https://github.com/Gizra","followers_url":"https://api.github.com/users/Gizra/followers","following_url":"https://api.github.com/users/Gizra/following{/other_user}","gists_url":"https://api.github.com/users/Gizra/gists{/gist_id}","starred_url":"https://api.github.com/users/Gizra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gizra/subscriptions","organizations_url":"https://api.github.com/users/Gizra/orgs","repos_url":"https://api.github.com/users/Gizra/repos","events_url":"https://api.github.com/users/Gizra/events{/privacy}","received_events_url":"https://api.github.com/users/Gizra/received_events","type":"Organization","site_admin":false},"repo":{"id":28179191,"name":"generator-hedley","full_name":"Gizra/generator-hedley","owner":{"login":"Gizra","id":2484795,"avatar_url":"https://avatars.githubusercontent.com/u/2484795?v=3","gravatar_id":"","url":"https://api.github.com/users/Gizra","html_url":"https://github.com/Gizra","followers_url":"https://api.github.com/users/Gizra/followers","following_url":"https://api.github.com/users/Gizra/following{/other_user}","gists_url":"https://api.github.com/users/Gizra/gists{/gist_id}","starred_url":"https://api.github.com/users/Gizra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gizra/subscriptions","organizations_url":"https://api.github.com/users/Gizra/orgs","repos_url":"https://api.github.com/users/Gizra/repos","events_url":"https://api.github.com/users/Gizra/events{/privacy}","received_events_url":"https://api.github.com/users/Gizra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Gizra/generator-hedley","description":"Scaffold a headless Drupal backend, Angular app client,  and Behat tests","fork":false,"url":"https://api.github.com/repos/Gizra/generator-hedley","forks_url":"https://api.github.com/repos/Gizra/generator-hedley/forks","keys_url":"https://api.github.com/repos/Gizra/generator-hedley/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gizra/generator-hedley/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gizra/generator-hedley/teams","hooks_url":"https://api.github.com/repos/Gizra/generator-hedley/hooks","issue_events_url":"https://api.github.com/repos/Gizra/generator-hedley/issues/events{/number}","events_url":"https://api.github.com/repos/Gizra/generator-hedley/events","assignees_url":"https://api.github.com/repos/Gizra/generator-hedley/assignees{/user}","branches_url":"https://api.github.com/repos/Gizra/generator-hedley/branches{/branch}","tags_url":"https://api.github.com/repos/Gizra/generator-hedley/tags","blobs_url":"https://api.github.com/repos/Gizra/generator-hedley/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gizra/generator-hedley/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gizra/generator-hedley/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gizra/generator-hedley/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gizra/generator-hedley/statuses/{sha}","languages_url":"https://api.github.com/repos/Gizra/generator-hedley/languages","stargazers_url":"https://api.github.com/repos/Gizra/generator-hedley/stargazers","contributors_url":"https://api.github.com/repos/Gizra/generator-hedley/contributors","subscribers_url":"https://api.github.com/repos/Gizra/generator-hedley/subscribers","subscription_url":"https://api.github.com/repos/Gizra/generator-hedley/subscription","commits_url":"https://api.github.com/repos/Gizra/generator-hedley/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gizra/generator-hedley/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gizra/generator-hedley/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gizra/generator-hedley/issues/comments{/number}","contents_url":"https://api.github.com/repos/Gizra/generator-hedley/contents/{+path}","compare_url":"https://api.github.com/repos/Gizra/generator-hedley/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gizra/generator-hedley/merges","archive_url":"https://api.github.com/repos/Gizra/generator-hedley/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gizra/generator-hedley/downloads","issues_url":"https://api.github.com/repos/Gizra/generator-hedley/issues{/number}","pulls_url":"https://api.github.com/repos/Gizra/generator-hedley/pulls{/number}","milestones_url":"https://api.github.com/repos/Gizra/generator-hedley/milestones{/number}","notifications_url":"https://api.github.com/repos/Gizra/generator-hedley/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gizra/generator-hedley/labels{/name}","releases_url":"https://api.github.com/repos/Gizra/generator-hedley/releases{/id}","created_at":"2014-12-18T10:35:36Z","updated_at":"2015-06-25T19:23:19Z","pushed_at":"2015-06-25T15:58:37Z","git_url":"git://github.com/Gizra/generator-hedley.git","ssh_url":"git@github.com:Gizra/generator-hedley.git","clone_url":"https://github.com/Gizra/generator-hedley.git","svn_url":"https://github.com/Gizra/generator-hedley","homepage":"http://www.gizra.com/content/yo-hedley","size":4931,"stargazers_count":74,"watchers_count":74,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":22,"forks":15,"open_issues":22,"watchers":74,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Gizra/generator-hedley/pulls/68"},"html":{"href":"https://github.com/Gizra/generator-hedley/pull/68"},"issue":{"href":"https://api.github.com/repos/Gizra/generator-hedley/issues/68"},"comments":{"href":"https://api.github.com/repos/Gizra/generator-hedley/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/Gizra/generator-hedley/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/Gizra/generator-hedley/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Gizra/generator-hedley/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/Gizra/generator-hedley/statuses/3673dcc3866c30a67aca05f42e83b78ba3a68463"}}}}