{"action":"created","comment":{"url":"https://api.github.com/repos/Alexandreh/clockin/pulls/comments/48099403","id":48099403,"diff_hunk":"@@ -0,0 +1,56 @@\n+<?php\n+\n+namespace App\\Http\\Controllers\\Auth;\n+\n+use App\\Http\\Controllers\\Controller;\n+use App\\User;\n+use Illuminate\\Support\\Facades\\Mail;\n+use Illuminate\\Support\\Facades\\Request;\n+use App\\Http\\Middleware\\Mailler;\n+\n+class RestorePasswordController extends Controller\n+{\n+    public function recover()\n+    {\n+        return view('recover');\n+    }\n+\n+    public function makeRecoverRequest()\n+    {\n+        if (!User::exists('email', Request::input('email'))) {\n+            return redirect('signup');\n+        }\n+\n+        $body = \"<a href='\".url('/restore?k='.User::$matched_row['remember_token']).\"' target='_blank'>\";\n+        $body .= 'Click here to reset your password</a>';\n+\n+        $mail = new Mailler();\n+        $mail->destinatary = User::$matched_row['email'];\n+        $mail->subject = 'Reset your Password';\n+        $mail->body = $body;\n+        $mail->sendMessage();\n+\n+        return redirect('login');\n+    }\n+\n+    public function createNewPassword()","path":"app/Http/Controllers/Auth/RestorePasswordController.php","position":36,"original_position":36,"commit_id":"7411de9666c740af85a58465dfd3bbec36f26cd8","original_commit_id":"7411de9666c740af85a58465dfd3bbec36f26cd8","user":{"login":"bruno2546","id":8925112,"avatar_url":"https://avatars.githubusercontent.com/u/8925112?v=3","gravatar_id":"","url":"https://api.github.com/users/bruno2546","html_url":"https://github.com/bruno2546","followers_url":"https://api.github.com/users/bruno2546/followers","following_url":"https://api.github.com/users/bruno2546/following{/other_user}","gists_url":"https://api.github.com/users/bruno2546/gists{/gist_id}","starred_url":"https://api.github.com/users/bruno2546/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruno2546/subscriptions","organizations_url":"https://api.github.com/users/bruno2546/orgs","repos_url":"https://api.github.com/users/bruno2546/repos","events_url":"https://api.github.com/users/bruno2546/events{/privacy}","received_events_url":"https://api.github.com/users/bruno2546/received_events","type":"User","site_admin":false},"body":"recebe a requisição via email com o token para resetar a senha, gerando a view. ","created_at":"2015-12-20T03:44:16Z","updated_at":"2015-12-20T03:44:16Z","html_url":"https://github.com/Alexandreh/clockin/pull/24#discussion_r48099403","pull_request_url":"https://api.github.com/repos/Alexandreh/clockin/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/Alexandreh/clockin/pulls/comments/48099403"},"html":{"href":"https://github.com/Alexandreh/clockin/pull/24#discussion_r48099403"},"pull_request":{"href":"https://api.github.com/repos/Alexandreh/clockin/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/Alexandreh/clockin/pulls/24","id":54192207,"html_url":"https://github.com/Alexandreh/clockin/pull/24","diff_url":"https://github.com/Alexandreh/clockin/pull/24.diff","patch_url":"https://github.com/Alexandreh/clockin/pull/24.patch","issue_url":"https://api.github.com/repos/Alexandreh/clockin/issues/24","number":24,"state":"open","locked":false,"title":" Password recovery #21","user":{"login":"bruno2546","id":8925112,"avatar_url":"https://avatars.githubusercontent.com/u/8925112?v=3","gravatar_id":"","url":"https://api.github.com/users/bruno2546","html_url":"https://github.com/bruno2546","followers_url":"https://api.github.com/users/bruno2546/followers","following_url":"https://api.github.com/users/bruno2546/following{/other_user}","gists_url":"https://api.github.com/users/bruno2546/gists{/gist_id}","starred_url":"https://api.github.com/users/bruno2546/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruno2546/subscriptions","organizations_url":"https://api.github.com/users/bruno2546/orgs","repos_url":"https://api.github.com/users/bruno2546/repos","events_url":"https://api.github.com/users/bruno2546/events{/privacy}","received_events_url":"https://api.github.com/users/bruno2546/received_events","type":"User","site_admin":false},"body":"Create Mailing list with mailgun and recovery password methods","created_at":"2015-12-20T03:39:01Z","updated_at":"2015-12-20T03:44:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9ec377d6d12861e78c6762cfe75319e51835218","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Alexandreh/clockin/pulls/24/commits","review_comments_url":"https://api.github.com/repos/Alexandreh/clockin/pulls/24/comments","review_comment_url":"https://api.github.com/repos/Alexandreh/clockin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Alexandreh/clockin/issues/24/comments","statuses_url":"https://api.github.com/repos/Alexandreh/clockin/statuses/7411de9666c740af85a58465dfd3bbec36f26cd8","head":{"label":"bruno2546:master","ref":"master","sha":"7411de9666c740af85a58465dfd3bbec36f26cd8","user":{"login":"bruno2546","id":8925112,"avatar_url":"https://avatars.githubusercontent.com/u/8925112?v=3","gravatar_id":"","url":"https://api.github.com/users/bruno2546","html_url":"https://github.com/bruno2546","followers_url":"https://api.github.com/users/bruno2546/followers","following_url":"https://api.github.com/users/bruno2546/following{/other_user}","gists_url":"https://api.github.com/users/bruno2546/gists{/gist_id}","starred_url":"https://api.github.com/users/bruno2546/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruno2546/subscriptions","organizations_url":"https://api.github.com/users/bruno2546/orgs","repos_url":"https://api.github.com/users/bruno2546/repos","events_url":"https://api.github.com/users/bruno2546/events{/privacy}","received_events_url":"https://api.github.com/users/bruno2546/received_events","type":"User","site_admin":false},"repo":{"id":48305250,"name":"clockin","full_name":"bruno2546/clockin","owner":{"login":"bruno2546","id":8925112,"avatar_url":"https://avatars.githubusercontent.com/u/8925112?v=3","gravatar_id":"","url":"https://api.github.com/users/bruno2546","html_url":"https://github.com/bruno2546","followers_url":"https://api.github.com/users/bruno2546/followers","following_url":"https://api.github.com/users/bruno2546/following{/other_user}","gists_url":"https://api.github.com/users/bruno2546/gists{/gist_id}","starred_url":"https://api.github.com/users/bruno2546/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruno2546/subscriptions","organizations_url":"https://api.github.com/users/bruno2546/orgs","repos_url":"https://api.github.com/users/bruno2546/repos","events_url":"https://api.github.com/users/bruno2546/events{/privacy}","received_events_url":"https://api.github.com/users/bruno2546/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bruno2546/clockin","description":"","fork":true,"url":"https://api.github.com/repos/bruno2546/clockin","forks_url":"https://api.github.com/repos/bruno2546/clockin/forks","keys_url":"https://api.github.com/repos/bruno2546/clockin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bruno2546/clockin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bruno2546/clockin/teams","hooks_url":"https://api.github.com/repos/bruno2546/clockin/hooks","issue_events_url":"https://api.github.com/repos/bruno2546/clockin/issues/events{/number}","events_url":"https://api.github.com/repos/bruno2546/clockin/events","assignees_url":"https://api.github.com/repos/bruno2546/clockin/assignees{/user}","branches_url":"https://api.github.com/repos/bruno2546/clockin/branches{/branch}","tags_url":"https://api.github.com/repos/bruno2546/clockin/tags","blobs_url":"https://api.github.com/repos/bruno2546/clockin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bruno2546/clockin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bruno2546/clockin/git/refs{/sha}","trees_url":"https://api.github.com/repos/bruno2546/clockin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bruno2546/clockin/statuses/{sha}","languages_url":"https://api.github.com/repos/bruno2546/clockin/languages","stargazers_url":"https://api.github.com/repos/bruno2546/clockin/stargazers","contributors_url":"https://api.github.com/repos/bruno2546/clockin/contributors","subscribers_url":"https://api.github.com/repos/bruno2546/clockin/subscribers","subscription_url":"https://api.github.com/repos/bruno2546/clockin/subscription","commits_url":"https://api.github.com/repos/bruno2546/clockin/commits{/sha}","git_commits_url":"https://api.github.com/repos/bruno2546/clockin/git/commits{/sha}","comments_url":"https://api.github.com/repos/bruno2546/clockin/comments{/number}","issue_comment_url":"https://api.github.com/repos/bruno2546/clockin/issues/comments{/number}","contents_url":"https://api.github.com/repos/bruno2546/clockin/contents/{+path}","compare_url":"https://api.github.com/repos/bruno2546/clockin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bruno2546/clockin/merges","archive_url":"https://api.github.com/repos/bruno2546/clockin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bruno2546/clockin/downloads","issues_url":"https://api.github.com/repos/bruno2546/clockin/issues{/number}","pulls_url":"https://api.github.com/repos/bruno2546/clockin/pulls{/number}","milestones_url":"https://api.github.com/repos/bruno2546/clockin/milestones{/number}","notifications_url":"https://api.github.com/repos/bruno2546/clockin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bruno2546/clockin/labels{/name}","releases_url":"https://api.github.com/repos/bruno2546/clockin/releases{/id}","created_at":"2015-12-20T03:00:46Z","updated_at":"2015-12-20T03:00:47Z","pushed_at":"2015-12-20T03:35:56Z","git_url":"git://github.com/bruno2546/clockin.git","ssh_url":"git@github.com:bruno2546/clockin.git","clone_url":"https://github.com/bruno2546/clockin.git","svn_url":"https://github.com/bruno2546/clockin","homepage":null,"size":3040,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":0,"default_branch":"master"}},"base":{"label":"Alexandreh:master","ref":"master","sha":"e4e0d91c47a236af7461a65c7852c1e544decce1","user":{"login":"Alexandreh","id":1428103,"avatar_url":"https://avatars.githubusercontent.com/u/1428103?v=3","gravatar_id":"","url":"https://api.github.com/users/Alexandreh","html_url":"https://github.com/Alexandreh","followers_url":"https://api.github.com/users/Alexandreh/followers","following_url":"https://api.github.com/users/Alexandreh/following{/other_user}","gists_url":"https://api.github.com/users/Alexandreh/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexandreh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexandreh/subscriptions","organizations_url":"https://api.github.com/users/Alexandreh/orgs","repos_url":"https://api.github.com/users/Alexandreh/repos","events_url":"https://api.github.com/users/Alexandreh/events{/privacy}","received_events_url":"https://api.github.com/users/Alexandreh/received_events","type":"User","site_admin":false},"repo":{"id":41893027,"name":"clockin","full_name":"Alexandreh/clockin","owner":{"login":"Alexandreh","id":1428103,"avatar_url":"https://avatars.githubusercontent.com/u/1428103?v=3","gravatar_id":"","url":"https://api.github.com/users/Alexandreh","html_url":"https://github.com/Alexandreh","followers_url":"https://api.github.com/users/Alexandreh/followers","following_url":"https://api.github.com/users/Alexandreh/following{/other_user}","gists_url":"https://api.github.com/users/Alexandreh/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexandreh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexandreh/subscriptions","organizations_url":"https://api.github.com/users/Alexandreh/orgs","repos_url":"https://api.github.com/users/Alexandreh/repos","events_url":"https://api.github.com/users/Alexandreh/events{/privacy}","received_events_url":"https://api.github.com/users/Alexandreh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Alexandreh/clockin","description":"","fork":false,"url":"https://api.github.com/repos/Alexandreh/clockin","forks_url":"https://api.github.com/repos/Alexandreh/clockin/forks","keys_url":"https://api.github.com/repos/Alexandreh/clockin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alexandreh/clockin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alexandreh/clockin/teams","hooks_url":"https://api.github.com/repos/Alexandreh/clockin/hooks","issue_events_url":"https://api.github.com/repos/Alexandreh/clockin/issues/events{/number}","events_url":"https://api.github.com/repos/Alexandreh/clockin/events","assignees_url":"https://api.github.com/repos/Alexandreh/clockin/assignees{/user}","branches_url":"https://api.github.com/repos/Alexandreh/clockin/branches{/branch}","tags_url":"https://api.github.com/repos/Alexandreh/clockin/tags","blobs_url":"https://api.github.com/repos/Alexandreh/clockin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alexandreh/clockin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alexandreh/clockin/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alexandreh/clockin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alexandreh/clockin/statuses/{sha}","languages_url":"https://api.github.com/repos/Alexandreh/clockin/languages","stargazers_url":"https://api.github.com/repos/Alexandreh/clockin/stargazers","contributors_url":"https://api.github.com/repos/Alexandreh/clockin/contributors","subscribers_url":"https://api.github.com/repos/Alexandreh/clockin/subscribers","subscription_url":"https://api.github.com/repos/Alexandreh/clockin/subscription","commits_url":"https://api.github.com/repos/Alexandreh/clockin/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alexandreh/clockin/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alexandreh/clockin/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alexandreh/clockin/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alexandreh/clockin/contents/{+path}","compare_url":"https://api.github.com/repos/Alexandreh/clockin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alexandreh/clockin/merges","archive_url":"https://api.github.com/repos/Alexandreh/clockin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alexandreh/clockin/downloads","issues_url":"https://api.github.com/repos/Alexandreh/clockin/issues{/number}","pulls_url":"https://api.github.com/repos/Alexandreh/clockin/pulls{/number}","milestones_url":"https://api.github.com/repos/Alexandreh/clockin/milestones{/number}","notifications_url":"https://api.github.com/repos/Alexandreh/clockin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alexandreh/clockin/labels{/name}","releases_url":"https://api.github.com/repos/Alexandreh/clockin/releases{/id}","created_at":"2015-09-04T01:54:09Z","updated_at":"2015-10-25T14:28:48Z","pushed_at":"2015-12-20T03:39:01Z","git_url":"git://github.com/Alexandreh/clockin.git","ssh_url":"git@github.com:Alexandreh/clockin.git","clone_url":"https://github.com/Alexandreh/clockin.git","svn_url":"https://github.com/Alexandreh/clockin","homepage":null,"size":3032,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":12,"forks":3,"open_issues":12,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Alexandreh/clockin/pulls/24"},"html":{"href":"https://github.com/Alexandreh/clockin/pull/24"},"issue":{"href":"https://api.github.com/repos/Alexandreh/clockin/issues/24"},"comments":{"href":"https://api.github.com/repos/Alexandreh/clockin/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/Alexandreh/clockin/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/Alexandreh/clockin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Alexandreh/clockin/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/Alexandreh/clockin/statuses/7411de9666c740af85a58465dfd3bbec36f26cd8"}}}}