{"action":"created","comment":{"url":"https://api.github.com/repos/GOThree/FeedbackAppFE/pulls/comments/88814012","pull_request_review_id":9375296,"id":88814012,"diff_hunk":"@@ -0,0 +1,29 @@\n+import { Component } from '@angular/core';\n+import { Router } from '@angular/router';\n+import { FormBuilder, FormGroup, Validators} from '@angular/forms';\n+import { UserService } from './../shared/auth/user.service';\n+import { ToastsManager } from 'ng2-toastr/ng2-toastr';\n+\n+@Component({\n+  moduleId: module.id,\n+  templateUrl: 'forgotpassword.component.html',\n+  styleUrls: ['./forgotpassword.component.css'],\n+})\n+export class ForgotPasswordComponent {\n+  forgotPasswordForm : FormGroup;\n+\n+  constructor(private userService: UserService, private router: Router, private fb: FormBuilder, private toastr: ToastsManager) {\n+    let emailRegex = `([a-zA-Z0-9_.]{1}[a-zA-Z0-9_.]*)((@[a-zA-Z]{2}[a-zA-Z]*)[\\\\\\.]([a-zA-Z]{2}|[a-zA-Z]{3}))`;\n+    this.forgotPasswordForm = fb.group({\n+     'email' : [null, Validators.compose([Validators.pattern(emailRegex), Validators.required ])],\n+    })\n+  }\n+\n+  forgotPassword(value: any) {\n+    this.userService.forgotPassword(value.email).\n+      subscribe(\n+        data => this.toastr.success('Successful forgot password request.'),","path":"src/client/app/forgotpassword/forgotpassword.component.ts","position":25,"original_position":25,"commit_id":"4955bcab9910f8fe98596cc5e5314daf52a376ec","original_commit_id":"b41f03757546e552f6d1d4d2ed04195f3501d1ed","user":{"login":"Elinos","id":4198943,"avatar_url":"https://avatars.githubusercontent.com/u/4198943?v=3","gravatar_id":"","url":"https://api.github.com/users/Elinos","html_url":"https://github.com/Elinos","followers_url":"https://api.github.com/users/Elinos/followers","following_url":"https://api.github.com/users/Elinos/following{/other_user}","gists_url":"https://api.github.com/users/Elinos/gists{/gist_id}","starred_url":"https://api.github.com/users/Elinos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elinos/subscriptions","organizations_url":"https://api.github.com/users/Elinos/orgs","repos_url":"https://api.github.com/users/Elinos/repos","events_url":"https://api.github.com/users/Elinos/events{/privacy}","received_events_url":"https://api.github.com/users/Elinos/received_events","type":"User","site_admin":false},"body":"Maybe the login page, in case the user suddenly recalls his password :)","created_at":"2016-11-20T22:47:54Z","updated_at":"2016-11-20T22:47:54Z","html_url":"https://github.com/GOThree/FeedbackAppFE/pull/3#discussion_r88814012","pull_request_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/GOThree/FeedbackAppFE/pulls/comments/88814012"},"html":{"href":"https://github.com/GOThree/FeedbackAppFE/pull/3#discussion_r88814012"},"pull_request":{"href":"https://api.github.com/repos/GOThree/FeedbackAppFE/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/GOThree/FeedbackAppFE/pulls/3","id":94416397,"html_url":"https://github.com/GOThree/FeedbackAppFE/pull/3","diff_url":"https://github.com/GOThree/FeedbackAppFE/pull/3.diff","patch_url":"https://github.com/GOThree/FeedbackAppFE/pull/3.patch","issue_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/issues/3","number":3,"state":"open","locked":false,"title":"Login, registration and forgot password","user":{"login":"ivopashov","id":9412307,"avatar_url":"https://avatars.githubusercontent.com/u/9412307?v=3","gravatar_id":"","url":"https://api.github.com/users/ivopashov","html_url":"https://github.com/ivopashov","followers_url":"https://api.github.com/users/ivopashov/followers","following_url":"https://api.github.com/users/ivopashov/following{/other_user}","gists_url":"https://api.github.com/users/ivopashov/gists{/gist_id}","starred_url":"https://api.github.com/users/ivopashov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivopashov/subscriptions","organizations_url":"https://api.github.com/users/ivopashov/orgs","repos_url":"https://api.github.com/users/ivopashov/repos","events_url":"https://api.github.com/users/ivopashov/events{/privacy}","received_events_url":"https://api.github.com/users/ivopashov/received_events","type":"User","site_admin":false},"body":"This PR sets the foundation of the authentication of in Feedback App:\r\n- it introduces login (/login)\r\n- it introduces registration (/register)\r\n- it introduces forgot password (/forgotpassword)\r\n\r\nIt also has a wrapper for the http module so that we attach the bearer token with every request.\r\nAll the forms are pretty much what comes out of the box with angular forms. After login we fetch userinfo and store email and names in the local storage.\r\n\r\nPS Change password will be implemented in another request as this has already grown probably more than it should be.","created_at":"2016-11-18T18:53:03Z","updated_at":"2016-11-20T22:47:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f31931ee57a110c94bdf132746be1f23774c0fd0","assignee":{"login":"vlad0","id":3619508,"avatar_url":"https://avatars.githubusercontent.com/u/3619508?v=3","gravatar_id":"","url":"https://api.github.com/users/vlad0","html_url":"https://github.com/vlad0","followers_url":"https://api.github.com/users/vlad0/followers","following_url":"https://api.github.com/users/vlad0/following{/other_user}","gists_url":"https://api.github.com/users/vlad0/gists{/gist_id}","starred_url":"https://api.github.com/users/vlad0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlad0/subscriptions","organizations_url":"https://api.github.com/users/vlad0/orgs","repos_url":"https://api.github.com/users/vlad0/repos","events_url":"https://api.github.com/users/vlad0/events{/privacy}","received_events_url":"https://api.github.com/users/vlad0/received_events","type":"User","site_admin":false},"assignees":[{"login":"vlad0","id":3619508,"avatar_url":"https://avatars.githubusercontent.com/u/3619508?v=3","gravatar_id":"","url":"https://api.github.com/users/vlad0","html_url":"https://github.com/vlad0","followers_url":"https://api.github.com/users/vlad0/followers","following_url":"https://api.github.com/users/vlad0/following{/other_user}","gists_url":"https://api.github.com/users/vlad0/gists{/gist_id}","starred_url":"https://api.github.com/users/vlad0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlad0/subscriptions","organizations_url":"https://api.github.com/users/vlad0/orgs","repos_url":"https://api.github.com/users/vlad0/repos","events_url":"https://api.github.com/users/vlad0/events{/privacy}","received_events_url":"https://api.github.com/users/vlad0/received_events","type":"User","site_admin":false},{"login":"Elinos","id":4198943,"avatar_url":"https://avatars.githubusercontent.com/u/4198943?v=3","gravatar_id":"","url":"https://api.github.com/users/Elinos","html_url":"https://github.com/Elinos","followers_url":"https://api.github.com/users/Elinos/followers","following_url":"https://api.github.com/users/Elinos/following{/other_user}","gists_url":"https://api.github.com/users/Elinos/gists{/gist_id}","starred_url":"https://api.github.com/users/Elinos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elinos/subscriptions","organizations_url":"https://api.github.com/users/Elinos/orgs","repos_url":"https://api.github.com/users/Elinos/repos","events_url":"https://api.github.com/users/Elinos/events{/privacy}","received_events_url":"https://api.github.com/users/Elinos/received_events","type":"User","site_admin":false},{"login":"ivopashov","id":9412307,"avatar_url":"https://avatars.githubusercontent.com/u/9412307?v=3","gravatar_id":"","url":"https://api.github.com/users/ivopashov","html_url":"https://github.com/ivopashov","followers_url":"https://api.github.com/users/ivopashov/followers","following_url":"https://api.github.com/users/ivopashov/following{/other_user}","gists_url":"https://api.github.com/users/ivopashov/gists{/gist_id}","starred_url":"https://api.github.com/users/ivopashov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivopashov/subscriptions","organizations_url":"https://api.github.com/users/ivopashov/orgs","repos_url":"https://api.github.com/users/ivopashov/repos","events_url":"https://api.github.com/users/ivopashov/events{/privacy}","received_events_url":"https://api.github.com/users/ivopashov/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/pulls/3/commits","review_comments_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/pulls/3/comments","review_comment_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/issues/3/comments","statuses_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/statuses/4955bcab9910f8fe98596cc5e5314daf52a376ec","head":{"label":"GOThree:login-and-registration","ref":"login-and-registration","sha":"4955bcab9910f8fe98596cc5e5314daf52a376ec","user":{"login":"GOThree","id":17390422,"avatar_url":"https://avatars.githubusercontent.com/u/17390422?v=3","gravatar_id":"","url":"https://api.github.com/users/GOThree","html_url":"https://github.com/GOThree","followers_url":"https://api.github.com/users/GOThree/followers","following_url":"https://api.github.com/users/GOThree/following{/other_user}","gists_url":"https://api.github.com/users/GOThree/gists{/gist_id}","starred_url":"https://api.github.com/users/GOThree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GOThree/subscriptions","organizations_url":"https://api.github.com/users/GOThree/orgs","repos_url":"https://api.github.com/users/GOThree/repos","events_url":"https://api.github.com/users/GOThree/events{/privacy}","received_events_url":"https://api.github.com/users/GOThree/received_events","type":"Organization","site_admin":false},"repo":{"id":72577011,"name":"FeedbackAppFE","full_name":"GOThree/FeedbackAppFE","owner":{"login":"GOThree","id":17390422,"avatar_url":"https://avatars.githubusercontent.com/u/17390422?v=3","gravatar_id":"","url":"https://api.github.com/users/GOThree","html_url":"https://github.com/GOThree","followers_url":"https://api.github.com/users/GOThree/followers","following_url":"https://api.github.com/users/GOThree/following{/other_user}","gists_url":"https://api.github.com/users/GOThree/gists{/gist_id}","starred_url":"https://api.github.com/users/GOThree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GOThree/subscriptions","organizations_url":"https://api.github.com/users/GOThree/orgs","repos_url":"https://api.github.com/users/GOThree/repos","events_url":"https://api.github.com/users/GOThree/events{/privacy}","received_events_url":"https://api.github.com/users/GOThree/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GOThree/FeedbackAppFE","description":"This Repository holds the FE of our Feedback App","fork":false,"url":"https://api.github.com/repos/GOThree/FeedbackAppFE","forks_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/forks","keys_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/teams","hooks_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/hooks","issue_events_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/issues/events{/number}","events_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/events","assignees_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/assignees{/user}","branches_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/branches{/branch}","tags_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/tags","blobs_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/git/refs{/sha}","trees_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/statuses/{sha}","languages_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/languages","stargazers_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/stargazers","contributors_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/contributors","subscribers_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/subscribers","subscription_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/subscription","commits_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/commits{/sha}","git_commits_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/git/commits{/sha}","comments_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/comments{/number}","issue_comment_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/issues/comments{/number}","contents_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/contents/{+path}","compare_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/merges","archive_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/downloads","issues_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/issues{/number}","pulls_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/pulls{/number}","milestones_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/milestones{/number}","notifications_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/labels{/name}","releases_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/releases{/id}","deployments_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/deployments","created_at":"2016-11-01T21:10:23Z","updated_at":"2016-11-01T21:13:52Z","pushed_at":"2016-11-20T22:28:02Z","git_url":"git://github.com/GOThree/FeedbackAppFE.git","ssh_url":"git@github.com:GOThree/FeedbackAppFE.git","clone_url":"https://github.com/GOThree/FeedbackAppFE.git","svn_url":"https://github.com/GOThree/FeedbackAppFE","homepage":null,"size":241,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"GOThree:develop","ref":"develop","sha":"922763109ba9c15df17b1718813ba3a60a92585f","user":{"login":"GOThree","id":17390422,"avatar_url":"https://avatars.githubusercontent.com/u/17390422?v=3","gravatar_id":"","url":"https://api.github.com/users/GOThree","html_url":"https://github.com/GOThree","followers_url":"https://api.github.com/users/GOThree/followers","following_url":"https://api.github.com/users/GOThree/following{/other_user}","gists_url":"https://api.github.com/users/GOThree/gists{/gist_id}","starred_url":"https://api.github.com/users/GOThree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GOThree/subscriptions","organizations_url":"https://api.github.com/users/GOThree/orgs","repos_url":"https://api.github.com/users/GOThree/repos","events_url":"https://api.github.com/users/GOThree/events{/privacy}","received_events_url":"https://api.github.com/users/GOThree/received_events","type":"Organization","site_admin":false},"repo":{"id":72577011,"name":"FeedbackAppFE","full_name":"GOThree/FeedbackAppFE","owner":{"login":"GOThree","id":17390422,"avatar_url":"https://avatars.githubusercontent.com/u/17390422?v=3","gravatar_id":"","url":"https://api.github.com/users/GOThree","html_url":"https://github.com/GOThree","followers_url":"https://api.github.com/users/GOThree/followers","following_url":"https://api.github.com/users/GOThree/following{/other_user}","gists_url":"https://api.github.com/users/GOThree/gists{/gist_id}","starred_url":"https://api.github.com/users/GOThree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GOThree/subscriptions","organizations_url":"https://api.github.com/users/GOThree/orgs","repos_url":"https://api.github.com/users/GOThree/repos","events_url":"https://api.github.com/users/GOThree/events{/privacy}","received_events_url":"https://api.github.com/users/GOThree/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GOThree/FeedbackAppFE","description":"This Repository holds the FE of our Feedback App","fork":false,"url":"https://api.github.com/repos/GOThree/FeedbackAppFE","forks_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/forks","keys_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/teams","hooks_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/hooks","issue_events_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/issues/events{/number}","events_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/events","assignees_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/assignees{/user}","branches_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/branches{/branch}","tags_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/tags","blobs_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/git/refs{/sha}","trees_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/statuses/{sha}","languages_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/languages","stargazers_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/stargazers","contributors_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/contributors","subscribers_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/subscribers","subscription_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/subscription","commits_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/commits{/sha}","git_commits_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/git/commits{/sha}","comments_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/comments{/number}","issue_comment_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/issues/comments{/number}","contents_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/contents/{+path}","compare_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/merges","archive_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/downloads","issues_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/issues{/number}","pulls_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/pulls{/number}","milestones_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/milestones{/number}","notifications_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/labels{/name}","releases_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/releases{/id}","deployments_url":"https://api.github.com/repos/GOThree/FeedbackAppFE/deployments","created_at":"2016-11-01T21:10:23Z","updated_at":"2016-11-01T21:13:52Z","pushed_at":"2016-11-20T22:28:02Z","git_url":"git://github.com/GOThree/FeedbackAppFE.git","ssh_url":"git@github.com:GOThree/FeedbackAppFE.git","clone_url":"https://github.com/GOThree/FeedbackAppFE.git","svn_url":"https://github.com/GOThree/FeedbackAppFE","homepage":null,"size":241,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GOThree/FeedbackAppFE/pulls/3"},"html":{"href":"https://github.com/GOThree/FeedbackAppFE/pull/3"},"issue":{"href":"https://api.github.com/repos/GOThree/FeedbackAppFE/issues/3"},"comments":{"href":"https://api.github.com/repos/GOThree/FeedbackAppFE/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/GOThree/FeedbackAppFE/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/GOThree/FeedbackAppFE/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GOThree/FeedbackAppFE/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/GOThree/FeedbackAppFE/statuses/4955bcab9910f8fe98596cc5e5314daf52a376ec"}}}}
{"actor":{"display_login":"Elinos"}}