{"action":"created","comment":{"url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/comments/147971944","pull_request_review_id":73141107,"id":147971944,"diff_hunk":"@@ -1,14 +1,64 @@\n <div class=\"register-form-container\">\n   <div class=\"register-form\">\n+    <form class=\"register-data-form mat-elevation-z2\" (ngSubmit)=\"tryRegister()\" #registerForm=\"ngForm\">\n+      <div class=\"register-text-container\">\n+        <h2 class=\"register-page-title\">Register a new user</h2>\n+        <h3 class=\"register-page-error\" [hidden]=\"error.length == 0\">\n+          {{error}}\n+        </h3>\n+      </div>\n+      <mat-input-container class=\"register-data-row\">\n+        <input matInput placeholder=\"Username\" id=\"username\" required minlength=\"{{minUsernameLength}}\"\n+               maxlength=\"{{maxUsernameLength}}\"\n+               [(ngModel)]=\"_info.login\" name=\"userName\"\n+               #name=\"ngModel\">\n+      </mat-input-container>\n+      <mat-input-container class=\"register-data-row\">\n+        <input matInput placeholder=\"First name\" id=\"firstName\"\n+               [(ngModel)]=\"_info.firstName\" name=\"firstName\"\n+               #firstName=\"ngModel\">\n+      </mat-input-container>\n+      <mat-input-container class=\"register-data-row\">\n+        <input matInput placeholder=\"Last name\" id=\"lastName\"\n+               [(ngModel)]=\"_info.lastName\" name=\"lastName\"\n+               #lastName=\"ngModel\">\n+      </mat-input-container>\n+      <mat-input-container class=\"register-data-row\">\n+        <input matInput placeholder=\"Middle name\" id=\"middleName\"\n+               [(ngModel)]=\"_info.middleName\" name=\"middleName\"\n+               #middleName=\"ngModel\">\n+      </mat-input-container>\n+      <mat-input-container class=\"register-data-row\">\n+        <input matInput placeholder=\"Email\" type=\"email\" id=\"mail\"\n+               isEmail\n+               [(ngModel)]=\"_info.mail\" name=\"mail\"\n+               #mail=\"ngModel\">\n+      </mat-input-container>\n+      <mat-input-container class=\"register-data-row\">\n+        <input matInput placeholder=\"Password\" type=\"password\" id=\"password\" required minlength=\"{{minPasswordLength}}\"\n+               maxlength=\"{{maxPasswordLength}}\"\n+               [(ngModel)]=\"_info.password\"\n+               name=\"password\"\n+               #password=\"ngModel\">\n+      </mat-input-container>\n+      <mat-input-container class=\"register-data-row\">\n+        <input matInput placeholder=\"Confirm Password\" type=\"password\"\n+               id=\"confirmPassword\" required minlength=\"{{minPasswordLength}}\"\n+               maxlength=\"{{maxPasswordLength}}\"\n+               equals=\"password\"\n+               [(ngModel)]=\"info.confirmPassword\"\n+               name=\"confirmPassword\"\n+               #confirmPassword=\"ngModel\">\n+      </mat-input-container>\n \n-    <div class=\"register-text-container\">\n-      <h2 class=\"register-page-title\">Register a new user</h2>\n-      <h3 class=\"register-page-error\" [hidden]=\"error.length == 0\">\n-        {{error}}\n-      </h3>\n-    </div>\n+      <mat-input-container>\n+        <mat-select placeholder=\"Choose your role\" [(ngModel)]=\"_selectedRole\" name=\"role\">","path":"front-end/src/component/page/register/register.component.html","position":61,"original_position":61,"commit_id":"f878cf604336e03519bdeed7e49695f3ec5eb2b0","original_commit_id":"f878cf604336e03519bdeed7e49695f3ec5eb2b0","user":{"login":"JavaSaBr","id":7160534,"avatar_url":"https://avatars1.githubusercontent.com/u/7160534?v=4","gravatar_id":"","url":"https://api.github.com/users/JavaSaBr","html_url":"https://github.com/JavaSaBr","followers_url":"https://api.github.com/users/JavaSaBr/followers","following_url":"https://api.github.com/users/JavaSaBr/following{/other_user}","gists_url":"https://api.github.com/users/JavaSaBr/gists{/gist_id}","starred_url":"https://api.github.com/users/JavaSaBr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JavaSaBr/subscriptions","organizations_url":"https://api.github.com/users/JavaSaBr/orgs","repos_url":"https://api.github.com/users/JavaSaBr/repos","events_url":"https://api.github.com/users/JavaSaBr/events{/privacy}","received_events_url":"https://api.github.com/users/JavaSaBr/received_events","type":"User","site_admin":false},"body":"ссылка на поле","created_at":"2017-10-31T12:05:02Z","updated_at":"2017-10-31T12:05:02Z","html_url":"https://github.com/JavaSaBr/jME-Asset-Store/pull/31#discussion_r147971944","pull_request_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/31","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/comments/147971944"},"html":{"href":"https://github.com/JavaSaBr/jME-Asset-Store/pull/31#discussion_r147971944"},"pull_request":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/31","id":149344479,"html_url":"https://github.com/JavaSaBr/jME-Asset-Store/pull/31","diff_url":"https://github.com/JavaSaBr/jME-Asset-Store/pull/31.diff","patch_url":"https://github.com/JavaSaBr/jME-Asset-Store/pull/31.patch","issue_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/31","number":31,"state":"open","locked":false,"title":"Implementing register authentication","user":{"login":"DenisLesheniuk","id":26572963,"avatar_url":"https://avatars2.githubusercontent.com/u/26572963?v=4","gravatar_id":"","url":"https://api.github.com/users/DenisLesheniuk","html_url":"https://github.com/DenisLesheniuk","followers_url":"https://api.github.com/users/DenisLesheniuk/followers","following_url":"https://api.github.com/users/DenisLesheniuk/following{/other_user}","gists_url":"https://api.github.com/users/DenisLesheniuk/gists{/gist_id}","starred_url":"https://api.github.com/users/DenisLesheniuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DenisLesheniuk/subscriptions","organizations_url":"https://api.github.com/users/DenisLesheniuk/orgs","repos_url":"https://api.github.com/users/DenisLesheniuk/repos","events_url":"https://api.github.com/users/DenisLesheniuk/events{/privacy}","received_events_url":"https://api.github.com/users/DenisLesheniuk/received_events","type":"User","site_admin":false},"body":"Implemented registration and authentication functions.\r\n\r\nFront-end: \r\n- Changed register-user-credentials.component.ts.\r\n- Added derectives for email and confirm password validation.\r\n- Added new forms for register.component.html.\r\n- Added new method in utils.ts for extracting error message from json responce.\r\n\r\nBack-end:\r\n- Small changes in UserController:\r\n   - removed unnecessary fileds verification.\r\n   - added new exception handler for db exceptions.","created_at":"2017-10-28T16:55:45Z","updated_at":"2017-10-31T12:05:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a722a636e675d40e2108ac8a8efe7dd23ac3c53","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/31/commits","review_comments_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/31/comments","review_comment_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/31/comments","statuses_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/statuses/f878cf604336e03519bdeed7e49695f3ec5eb2b0","head":{"label":"JavaSaBr:implementing_register_authentication","ref":"implementing_register_authentication","sha":"f878cf604336e03519bdeed7e49695f3ec5eb2b0","user":{"login":"JavaSaBr","id":7160534,"avatar_url":"https://avatars1.githubusercontent.com/u/7160534?v=4","gravatar_id":"","url":"https://api.github.com/users/JavaSaBr","html_url":"https://github.com/JavaSaBr","followers_url":"https://api.github.com/users/JavaSaBr/followers","following_url":"https://api.github.com/users/JavaSaBr/following{/other_user}","gists_url":"https://api.github.com/users/JavaSaBr/gists{/gist_id}","starred_url":"https://api.github.com/users/JavaSaBr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JavaSaBr/subscriptions","organizations_url":"https://api.github.com/users/JavaSaBr/orgs","repos_url":"https://api.github.com/users/JavaSaBr/repos","events_url":"https://api.github.com/users/JavaSaBr/events{/privacy}","received_events_url":"https://api.github.com/users/JavaSaBr/received_events","type":"User","site_admin":false},"repo":{"id":105921976,"name":"jME-Asset-Store","full_name":"JavaSaBr/jME-Asset-Store","owner":{"login":"JavaSaBr","id":7160534,"avatar_url":"https://avatars1.githubusercontent.com/u/7160534?v=4","gravatar_id":"","url":"https://api.github.com/users/JavaSaBr","html_url":"https://github.com/JavaSaBr","followers_url":"https://api.github.com/users/JavaSaBr/followers","following_url":"https://api.github.com/users/JavaSaBr/following{/other_user}","gists_url":"https://api.github.com/users/JavaSaBr/gists{/gist_id}","starred_url":"https://api.github.com/users/JavaSaBr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JavaSaBr/subscriptions","organizations_url":"https://api.github.com/users/JavaSaBr/orgs","repos_url":"https://api.github.com/users/JavaSaBr/repos","events_url":"https://api.github.com/users/JavaSaBr/events{/privacy}","received_events_url":"https://api.github.com/users/JavaSaBr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JavaSaBr/jME-Asset-Store","description":"Asset Store for jMonkeyEngine","fork":false,"url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store","forks_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/forks","keys_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/teams","hooks_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/hooks","issue_events_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/events{/number}","events_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/events","assignees_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/assignees{/user}","branches_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/branches{/branch}","tags_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/tags","blobs_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/refs{/sha}","trees_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/statuses/{sha}","languages_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/languages","stargazers_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/stargazers","contributors_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/contributors","subscribers_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/subscribers","subscription_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/subscription","commits_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/commits{/sha}","git_commits_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/commits{/sha}","comments_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/comments{/number}","issue_comment_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/comments{/number}","contents_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/contents/{+path}","compare_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/merges","archive_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/downloads","issues_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues{/number}","pulls_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls{/number}","milestones_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/milestones{/number}","notifications_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/labels{/name}","releases_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/releases{/id}","deployments_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/deployments","created_at":"2017-10-05T17:54:28Z","updated_at":"2017-10-27T19:59:18Z","pushed_at":"2017-10-31T12:02:08Z","git_url":"git://github.com/JavaSaBr/jME-Asset-Store.git","ssh_url":"git@github.com:JavaSaBr/jME-Asset-Store.git","clone_url":"https://github.com/JavaSaBr/jME-Asset-Store.git","svn_url":"https://github.com/JavaSaBr/jME-Asset-Store","homepage":null,"size":7263,"stargazers_count":2,"watchers_count":2,"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":7,"forks":1,"open_issues":7,"watchers":2,"default_branch":"master"}},"base":{"label":"JavaSaBr:develop","ref":"develop","sha":"ce9037ba65fd1ef8d84ee728b9668d640d1e99b5","user":{"login":"JavaSaBr","id":7160534,"avatar_url":"https://avatars1.githubusercontent.com/u/7160534?v=4","gravatar_id":"","url":"https://api.github.com/users/JavaSaBr","html_url":"https://github.com/JavaSaBr","followers_url":"https://api.github.com/users/JavaSaBr/followers","following_url":"https://api.github.com/users/JavaSaBr/following{/other_user}","gists_url":"https://api.github.com/users/JavaSaBr/gists{/gist_id}","starred_url":"https://api.github.com/users/JavaSaBr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JavaSaBr/subscriptions","organizations_url":"https://api.github.com/users/JavaSaBr/orgs","repos_url":"https://api.github.com/users/JavaSaBr/repos","events_url":"https://api.github.com/users/JavaSaBr/events{/privacy}","received_events_url":"https://api.github.com/users/JavaSaBr/received_events","type":"User","site_admin":false},"repo":{"id":105921976,"name":"jME-Asset-Store","full_name":"JavaSaBr/jME-Asset-Store","owner":{"login":"JavaSaBr","id":7160534,"avatar_url":"https://avatars1.githubusercontent.com/u/7160534?v=4","gravatar_id":"","url":"https://api.github.com/users/JavaSaBr","html_url":"https://github.com/JavaSaBr","followers_url":"https://api.github.com/users/JavaSaBr/followers","following_url":"https://api.github.com/users/JavaSaBr/following{/other_user}","gists_url":"https://api.github.com/users/JavaSaBr/gists{/gist_id}","starred_url":"https://api.github.com/users/JavaSaBr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JavaSaBr/subscriptions","organizations_url":"https://api.github.com/users/JavaSaBr/orgs","repos_url":"https://api.github.com/users/JavaSaBr/repos","events_url":"https://api.github.com/users/JavaSaBr/events{/privacy}","received_events_url":"https://api.github.com/users/JavaSaBr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JavaSaBr/jME-Asset-Store","description":"Asset Store for jMonkeyEngine","fork":false,"url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store","forks_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/forks","keys_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/teams","hooks_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/hooks","issue_events_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/events{/number}","events_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/events","assignees_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/assignees{/user}","branches_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/branches{/branch}","tags_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/tags","blobs_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/refs{/sha}","trees_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/statuses/{sha}","languages_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/languages","stargazers_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/stargazers","contributors_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/contributors","subscribers_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/subscribers","subscription_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/subscription","commits_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/commits{/sha}","git_commits_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/commits{/sha}","comments_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/comments{/number}","issue_comment_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/comments{/number}","contents_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/contents/{+path}","compare_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/merges","archive_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/downloads","issues_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues{/number}","pulls_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls{/number}","milestones_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/milestones{/number}","notifications_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/labels{/name}","releases_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/releases{/id}","deployments_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/deployments","created_at":"2017-10-05T17:54:28Z","updated_at":"2017-10-27T19:59:18Z","pushed_at":"2017-10-31T12:02:08Z","git_url":"git://github.com/JavaSaBr/jME-Asset-Store.git","ssh_url":"git@github.com:JavaSaBr/jME-Asset-Store.git","clone_url":"https://github.com/JavaSaBr/jME-Asset-Store.git","svn_url":"https://github.com/JavaSaBr/jME-Asset-Store","homepage":null,"size":7263,"stargazers_count":2,"watchers_count":2,"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":7,"forks":1,"open_issues":7,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/31"},"html":{"href":"https://github.com/JavaSaBr/jME-Asset-Store/pull/31"},"issue":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/31"},"comments":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/statuses/f878cf604336e03519bdeed7e49695f3ec5eb2b0"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"JavaSaBr"}}