{"action":"created","comment":{"url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/pulls/comments/90392318","pull_request_review_id":10909761,"id":90392318,"diff_hunk":"@@ -0,0 +1,164 @@\n+\n+var miniUserNameLength = 5;\n+var minPassLength = 8;\n+\n+//password strength validator\n+password.addEventListener('input', function()\n+{\n+\n+      var password = document.getElementById('password');\n+      var meter = document.getElementById('password-strength-meter');\n+      var text = document.getElementById('password-strength-text');\n+      var passwordVal = password.value;\n+      var result = 0;\n+      var strength = {\n+        0: \"Worst\",\n+        1: \"Bad\",\n+        2: \"Weak\",\n+        3: \"Good\",\n+        4: \"Strong\",\n+        5: \"Very Strong\"\n+      }\n+\n+      //if cintains lowercase\n+      if(/[a-z]/.test(passwordVal)){\n+        result+=1;\n+      }\n+      //if contains uppercase\n+      if(/[A-Z]/.test(passwordVal)){\n+        result+=1;\n+      }\n+      //if conteins special characters\n+\n+      if(/[.!@#$%^&*()_+-]/.test(passwordVal)){\n+        result+=1;\n+      }\n+      //if contains number\n+      if(/[\\d]/.test(passwordVal)){\n+        result+=1;\n+      }\n+      //if is longer than 8 characters\n+      if(passwordVal.length >=8){\n+        result+=1;\n+      }\n+\n+      if(result>5){\n+      result=5;\n+      }\n+\n+      // Update the password strength meter\n+      meter.value = result;\n+\n+      // Update the text indicator\n+      if (passwordVal !== \"\") {\n+        text.innerHTML = \"Password Strength: \" + strength[result];\n+      } else {\n+        text.innerHTML = \"\";\n+      }\n+    });\n+//password match validator\n+function ValidatePassMatch(field_id,password,password2)\n+{\n+\n+var passVal = document.getElementById(password).value.trim();\n+var pass2Val = document.getElementById(password2).value.trim();\n+var field_div = document.getElementById(field_id).parentNode.id;\n+\n+if(passVal !== pass2Val)\n+{\n+removeWarning(field_id,field_div);","path":"src/main/webapp/JS/regValidation.js","position":69,"original_position":69,"commit_id":"520d995631cd3a187b92285fd32a457213c959e0","original_commit_id":"520d995631cd3a187b92285fd32a457213c959e0","user":{"login":"s13302","id":9245661,"avatar_url":"https://avatars.githubusercontent.com/u/9245661?v=3","gravatar_id":"","url":"https://api.github.com/users/s13302","html_url":"https://github.com/s13302","followers_url":"https://api.github.com/users/s13302/followers","following_url":"https://api.github.com/users/s13302/following{/other_user}","gists_url":"https://api.github.com/users/s13302/gists{/gist_id}","starred_url":"https://api.github.com/users/s13302/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s13302/subscriptions","organizations_url":"https://api.github.com/users/s13302/orgs","repos_url":"https://api.github.com/users/s13302/repos","events_url":"https://api.github.com/users/s13302/events{/privacy}","received_events_url":"https://api.github.com/users/s13302/received_events","type":"User","site_admin":false},"body":"Tu mi brakuje wcięć! Bardzo poważna rzecz.\r\nTym bardziej się to rzuca w oczy, że w funkcji wyżej te wcięcia są.","created_at":"2016-12-01T06:56:12Z","updated_at":"2016-12-01T06:57:59Z","html_url":"https://github.com/KNJPJATK/CZ_ZAAW_PROJ/pull/6#discussion_r90392318","pull_request_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/pulls/comments/90392318"},"html":{"href":"https://github.com/KNJPJATK/CZ_ZAAW_PROJ/pull/6#discussion_r90392318"},"pull_request":{"href":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/pulls/6","id":96000133,"html_url":"https://github.com/KNJPJATK/CZ_ZAAW_PROJ/pull/6","diff_url":"https://github.com/KNJPJATK/CZ_ZAAW_PROJ/pull/6.diff","patch_url":"https://github.com/KNJPJATK/CZ_ZAAW_PROJ/pull/6.patch","issue_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/issues/6","number":6,"state":"open","locked":false,"title":"Register page & JS validation","user":{"login":"Adam7domanski","id":23664113,"avatar_url":"https://avatars.githubusercontent.com/u/23664113?v=3","gravatar_id":"","url":"https://api.github.com/users/Adam7domanski","html_url":"https://github.com/Adam7domanski","followers_url":"https://api.github.com/users/Adam7domanski/followers","following_url":"https://api.github.com/users/Adam7domanski/following{/other_user}","gists_url":"https://api.github.com/users/Adam7domanski/gists{/gist_id}","starred_url":"https://api.github.com/users/Adam7domanski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adam7domanski/subscriptions","organizations_url":"https://api.github.com/users/Adam7domanski/orgs","repos_url":"https://api.github.com/users/Adam7domanski/repos","events_url":"https://api.github.com/users/Adam7domanski/events{/privacy}","received_events_url":"https://api.github.com/users/Adam7domanski/received_events","type":"User","site_admin":false},"body":"fuck ssh keys!","created_at":"2016-12-01T00:03:34Z","updated_at":"2016-12-01T06:57:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"953c4a7e9c56ce64772a064d78e099076407f27c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/pulls/6/commits","review_comments_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/pulls/6/comments","review_comment_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/issues/6/comments","statuses_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/statuses/520d995631cd3a187b92285fd32a457213c959e0","head":{"label":"Adam7domanski:master","ref":"master","sha":"520d995631cd3a187b92285fd32a457213c959e0","user":{"login":"Adam7domanski","id":23664113,"avatar_url":"https://avatars.githubusercontent.com/u/23664113?v=3","gravatar_id":"","url":"https://api.github.com/users/Adam7domanski","html_url":"https://github.com/Adam7domanski","followers_url":"https://api.github.com/users/Adam7domanski/followers","following_url":"https://api.github.com/users/Adam7domanski/following{/other_user}","gists_url":"https://api.github.com/users/Adam7domanski/gists{/gist_id}","starred_url":"https://api.github.com/users/Adam7domanski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adam7domanski/subscriptions","organizations_url":"https://api.github.com/users/Adam7domanski/orgs","repos_url":"https://api.github.com/users/Adam7domanski/repos","events_url":"https://api.github.com/users/Adam7domanski/events{/privacy}","received_events_url":"https://api.github.com/users/Adam7domanski/received_events","type":"User","site_admin":false},"repo":{"id":75236063,"name":"CZ_ZAAW_PROJ","full_name":"Adam7domanski/CZ_ZAAW_PROJ","owner":{"login":"Adam7domanski","id":23664113,"avatar_url":"https://avatars.githubusercontent.com/u/23664113?v=3","gravatar_id":"","url":"https://api.github.com/users/Adam7domanski","html_url":"https://github.com/Adam7domanski","followers_url":"https://api.github.com/users/Adam7domanski/followers","following_url":"https://api.github.com/users/Adam7domanski/following{/other_user}","gists_url":"https://api.github.com/users/Adam7domanski/gists{/gist_id}","starred_url":"https://api.github.com/users/Adam7domanski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adam7domanski/subscriptions","organizations_url":"https://api.github.com/users/Adam7domanski/orgs","repos_url":"https://api.github.com/users/Adam7domanski/repos","events_url":"https://api.github.com/users/Adam7domanski/events{/privacy}","received_events_url":"https://api.github.com/users/Adam7domanski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Adam7domanski/CZ_ZAAW_PROJ","description":"Projekt grupy zaawansowanej","fork":true,"url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ","forks_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/forks","keys_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/teams","hooks_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/hooks","issue_events_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/issues/events{/number}","events_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/events","assignees_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/assignees{/user}","branches_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/branches{/branch}","tags_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/tags","blobs_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/git/refs{/sha}","trees_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/statuses/{sha}","languages_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/languages","stargazers_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/stargazers","contributors_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/contributors","subscribers_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/subscribers","subscription_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/subscription","commits_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/commits{/sha}","git_commits_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/git/commits{/sha}","comments_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/comments{/number}","issue_comment_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/issues/comments{/number}","contents_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/contents/{+path}","compare_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/merges","archive_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/downloads","issues_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/issues{/number}","pulls_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/pulls{/number}","milestones_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/milestones{/number}","notifications_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/labels{/name}","releases_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/releases{/id}","deployments_url":"https://api.github.com/repos/Adam7domanski/CZ_ZAAW_PROJ/deployments","created_at":"2016-11-30T23:21:48Z","updated_at":"2016-11-30T23:21:49Z","pushed_at":"2016-12-01T00:01:34Z","git_url":"git://github.com/Adam7domanski/CZ_ZAAW_PROJ.git","ssh_url":"git@github.com:Adam7domanski/CZ_ZAAW_PROJ.git","clone_url":"https://github.com/Adam7domanski/CZ_ZAAW_PROJ.git","svn_url":"https://github.com/Adam7domanski/CZ_ZAAW_PROJ","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"KNJPJATK:master","ref":"master","sha":"60e555fee5dabae7e1e52c0ae441f05e82c4c4f9","user":{"login":"KNJPJATK","id":15258886,"avatar_url":"https://avatars.githubusercontent.com/u/15258886?v=3","gravatar_id":"","url":"https://api.github.com/users/KNJPJATK","html_url":"https://github.com/KNJPJATK","followers_url":"https://api.github.com/users/KNJPJATK/followers","following_url":"https://api.github.com/users/KNJPJATK/following{/other_user}","gists_url":"https://api.github.com/users/KNJPJATK/gists{/gist_id}","starred_url":"https://api.github.com/users/KNJPJATK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KNJPJATK/subscriptions","organizations_url":"https://api.github.com/users/KNJPJATK/orgs","repos_url":"https://api.github.com/users/KNJPJATK/repos","events_url":"https://api.github.com/users/KNJPJATK/events{/privacy}","received_events_url":"https://api.github.com/users/KNJPJATK/received_events","type":"Organization","site_admin":false},"repo":{"id":73681430,"name":"CZ_ZAAW_PROJ","full_name":"KNJPJATK/CZ_ZAAW_PROJ","owner":{"login":"KNJPJATK","id":15258886,"avatar_url":"https://avatars.githubusercontent.com/u/15258886?v=3","gravatar_id":"","url":"https://api.github.com/users/KNJPJATK","html_url":"https://github.com/KNJPJATK","followers_url":"https://api.github.com/users/KNJPJATK/followers","following_url":"https://api.github.com/users/KNJPJATK/following{/other_user}","gists_url":"https://api.github.com/users/KNJPJATK/gists{/gist_id}","starred_url":"https://api.github.com/users/KNJPJATK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KNJPJATK/subscriptions","organizations_url":"https://api.github.com/users/KNJPJATK/orgs","repos_url":"https://api.github.com/users/KNJPJATK/repos","events_url":"https://api.github.com/users/KNJPJATK/events{/privacy}","received_events_url":"https://api.github.com/users/KNJPJATK/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KNJPJATK/CZ_ZAAW_PROJ","description":"Projekt grupy zaawansowanej","fork":false,"url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ","forks_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/forks","keys_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/teams","hooks_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/hooks","issue_events_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/issues/events{/number}","events_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/events","assignees_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/assignees{/user}","branches_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/branches{/branch}","tags_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/tags","blobs_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/git/refs{/sha}","trees_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/statuses/{sha}","languages_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/languages","stargazers_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/stargazers","contributors_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/contributors","subscribers_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/subscribers","subscription_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/subscription","commits_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/commits{/sha}","git_commits_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/git/commits{/sha}","comments_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/comments{/number}","issue_comment_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/issues/comments{/number}","contents_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/contents/{+path}","compare_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/merges","archive_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/downloads","issues_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/issues{/number}","pulls_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/pulls{/number}","milestones_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/milestones{/number}","notifications_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/labels{/name}","releases_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/releases{/id}","deployments_url":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/deployments","created_at":"2016-11-14T08:05:39Z","updated_at":"2016-11-29T10:06:52Z","pushed_at":"2016-12-01T00:03:35Z","git_url":"git://github.com/KNJPJATK/CZ_ZAAW_PROJ.git","ssh_url":"git@github.com:KNJPJATK/CZ_ZAAW_PROJ.git","clone_url":"https://github.com/KNJPJATK/CZ_ZAAW_PROJ.git","svn_url":"https://github.com/KNJPJATK/CZ_ZAAW_PROJ","homepage":null,"size":75,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":2,"forks":13,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/pulls/6"},"html":{"href":"https://github.com/KNJPJATK/CZ_ZAAW_PROJ/pull/6"},"issue":{"href":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/issues/6"},"comments":{"href":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/KNJPJATK/CZ_ZAAW_PROJ/statuses/520d995631cd3a187b92285fd32a457213c959e0"}}}}
{"actor":{"display_login":"s13302"}}