{"action":"created","comment":{"url":"https://api.github.com/repos/horba/pineapple/pulls/comments/167066358","pull_request_review_id":95231646,"id":167066358,"diff_hunk":"@@ -13,106 +13,129 @@ public class UserAuth : IUserAuth\n         public IEnumerable<string> Login(LoginModel loginModel)\n         {\n             DBconnection.ConnectionOpen();\n-            SqlCommand myCommand = new SqlCommand(\"SELECT * FROM Users WHERE Nick = @ParamNick AND Password = @ParamPass\",DBconnection.myConnection);\n-            SqlParameter parameter = myCommand.Parameters.AddWithValue(\"@ParamNick\",loginModel.name);\n-            SqlParameter ParamPass = myCommand.Parameters.AddWithValue(\"@ParamPass\", UserService.CreateMD5(loginModel.password));\n-            SqlDataReader myDataReader = myCommand.ExecuteReader();\n-            object id = null, nick = null;\n-            if (myDataReader.HasRows)\n+\n+            int userId = 0;\n+            string userNick = \"\";","path":"Pineapple/Pineapple/Services/UserAuth.cs","position":12,"original_position":12,"commit_id":"890c3d5200ccfad133cdc820cbce058d635d0f3a","original_commit_id":"890c3d5200ccfad133cdc820cbce058d635d0f3a","user":{"login":"Markiz9999","id":24416431,"avatar_url":"https://avatars2.githubusercontent.com/u/24416431?v=4","gravatar_id":"","url":"https://api.github.com/users/Markiz9999","html_url":"https://github.com/Markiz9999","followers_url":"https://api.github.com/users/Markiz9999/followers","following_url":"https://api.github.com/users/Markiz9999/following{/other_user}","gists_url":"https://api.github.com/users/Markiz9999/gists{/gist_id}","starred_url":"https://api.github.com/users/Markiz9999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Markiz9999/subscriptions","organizations_url":"https://api.github.com/users/Markiz9999/orgs","repos_url":"https://api.github.com/users/Markiz9999/repos","events_url":"https://api.github.com/users/Markiz9999/events{/privacy}","received_events_url":"https://api.github.com/users/Markiz9999/received_events","type":"User","site_admin":false},"body":"поправлю","created_at":"2018-02-08T21:03:05Z","updated_at":"2018-02-08T21:03:05Z","html_url":"https://github.com/horba/pineapple/pull/49#discussion_r167066358","pull_request_url":"https://api.github.com/repos/horba/pineapple/pulls/49","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/horba/pineapple/pulls/comments/167066358"},"html":{"href":"https://github.com/horba/pineapple/pull/49#discussion_r167066358"},"pull_request":{"href":"https://api.github.com/repos/horba/pineapple/pulls/49"}},"in_reply_to_id":167053306},"pull_request":{"url":"https://api.github.com/repos/horba/pineapple/pulls/49","id":166896241,"html_url":"https://github.com/horba/pineapple/pull/49","diff_url":"https://github.com/horba/pineapple/pull/49.diff","patch_url":"https://github.com/horba/pineapple/pull/49.patch","issue_url":"https://api.github.com/repos/horba/pineapple/issues/49","number":49,"state":"open","locked":false,"title":"Рефакторинг авторизации #37","user":{"login":"Markiz9999","id":24416431,"avatar_url":"https://avatars2.githubusercontent.com/u/24416431?v=4","gravatar_id":"","url":"https://api.github.com/users/Markiz9999","html_url":"https://github.com/Markiz9999","followers_url":"https://api.github.com/users/Markiz9999/followers","following_url":"https://api.github.com/users/Markiz9999/following{/other_user}","gists_url":"https://api.github.com/users/Markiz9999/gists{/gist_id}","starred_url":"https://api.github.com/users/Markiz9999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Markiz9999/subscriptions","organizations_url":"https://api.github.com/users/Markiz9999/orgs","repos_url":"https://api.github.com/users/Markiz9999/repos","events_url":"https://api.github.com/users/Markiz9999/events{/privacy}","received_events_url":"https://api.github.com/users/Markiz9999/received_events","type":"User","site_admin":false},"body":"https://github.com/horba/pineapple/issues/37","created_at":"2018-02-02T20:28:45Z","updated_at":"2018-02-08T21:03:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f3e3bc24b5e3be4dfaeca40604bded382fe5b96","assignee":{"login":"demosglok","id":288610,"avatar_url":"https://avatars0.githubusercontent.com/u/288610?v=4","gravatar_id":"","url":"https://api.github.com/users/demosglok","html_url":"https://github.com/demosglok","followers_url":"https://api.github.com/users/demosglok/followers","following_url":"https://api.github.com/users/demosglok/following{/other_user}","gists_url":"https://api.github.com/users/demosglok/gists{/gist_id}","starred_url":"https://api.github.com/users/demosglok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demosglok/subscriptions","organizations_url":"https://api.github.com/users/demosglok/orgs","repos_url":"https://api.github.com/users/demosglok/repos","events_url":"https://api.github.com/users/demosglok/events{/privacy}","received_events_url":"https://api.github.com/users/demosglok/received_events","type":"User","site_admin":false},"assignees":[{"login":"demosglok","id":288610,"avatar_url":"https://avatars0.githubusercontent.com/u/288610?v=4","gravatar_id":"","url":"https://api.github.com/users/demosglok","html_url":"https://github.com/demosglok","followers_url":"https://api.github.com/users/demosglok/followers","following_url":"https://api.github.com/users/demosglok/following{/other_user}","gists_url":"https://api.github.com/users/demosglok/gists{/gist_id}","starred_url":"https://api.github.com/users/demosglok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demosglok/subscriptions","organizations_url":"https://api.github.com/users/demosglok/orgs","repos_url":"https://api.github.com/users/demosglok/repos","events_url":"https://api.github.com/users/demosglok/events{/privacy}","received_events_url":"https://api.github.com/users/demosglok/received_events","type":"User","site_admin":false},{"login":"horba","id":11043173,"avatar_url":"https://avatars0.githubusercontent.com/u/11043173?v=4","gravatar_id":"","url":"https://api.github.com/users/horba","html_url":"https://github.com/horba","followers_url":"https://api.github.com/users/horba/followers","following_url":"https://api.github.com/users/horba/following{/other_user}","gists_url":"https://api.github.com/users/horba/gists{/gist_id}","starred_url":"https://api.github.com/users/horba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horba/subscriptions","organizations_url":"https://api.github.com/users/horba/orgs","repos_url":"https://api.github.com/users/horba/repos","events_url":"https://api.github.com/users/horba/events{/privacy}","received_events_url":"https://api.github.com/users/horba/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/horba/pineapple/pulls/49/commits","review_comments_url":"https://api.github.com/repos/horba/pineapple/pulls/49/comments","review_comment_url":"https://api.github.com/repos/horba/pineapple/pulls/comments{/number}","comments_url":"https://api.github.com/repos/horba/pineapple/issues/49/comments","statuses_url":"https://api.github.com/repos/horba/pineapple/statuses/890c3d5200ccfad133cdc820cbce058d635d0f3a","head":{"label":"horba:feature/37","ref":"feature/37","sha":"890c3d5200ccfad133cdc820cbce058d635d0f3a","user":{"login":"horba","id":11043173,"avatar_url":"https://avatars0.githubusercontent.com/u/11043173?v=4","gravatar_id":"","url":"https://api.github.com/users/horba","html_url":"https://github.com/horba","followers_url":"https://api.github.com/users/horba/followers","following_url":"https://api.github.com/users/horba/following{/other_user}","gists_url":"https://api.github.com/users/horba/gists{/gist_id}","starred_url":"https://api.github.com/users/horba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horba/subscriptions","organizations_url":"https://api.github.com/users/horba/orgs","repos_url":"https://api.github.com/users/horba/repos","events_url":"https://api.github.com/users/horba/events{/privacy}","received_events_url":"https://api.github.com/users/horba/received_events","type":"User","site_admin":false},"repo":{"id":108883154,"name":"pineapple","full_name":"horba/pineapple","owner":{"login":"horba","id":11043173,"avatar_url":"https://avatars0.githubusercontent.com/u/11043173?v=4","gravatar_id":"","url":"https://api.github.com/users/horba","html_url":"https://github.com/horba","followers_url":"https://api.github.com/users/horba/followers","following_url":"https://api.github.com/users/horba/following{/other_user}","gists_url":"https://api.github.com/users/horba/gists{/gist_id}","starred_url":"https://api.github.com/users/horba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horba/subscriptions","organizations_url":"https://api.github.com/users/horba/orgs","repos_url":"https://api.github.com/users/horba/repos","events_url":"https://api.github.com/users/horba/events{/privacy}","received_events_url":"https://api.github.com/users/horba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/horba/pineapple","description":"Twitter replica project","fork":false,"url":"https://api.github.com/repos/horba/pineapple","forks_url":"https://api.github.com/repos/horba/pineapple/forks","keys_url":"https://api.github.com/repos/horba/pineapple/keys{/key_id}","collaborators_url":"https://api.github.com/repos/horba/pineapple/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/horba/pineapple/teams","hooks_url":"https://api.github.com/repos/horba/pineapple/hooks","issue_events_url":"https://api.github.com/repos/horba/pineapple/issues/events{/number}","events_url":"https://api.github.com/repos/horba/pineapple/events","assignees_url":"https://api.github.com/repos/horba/pineapple/assignees{/user}","branches_url":"https://api.github.com/repos/horba/pineapple/branches{/branch}","tags_url":"https://api.github.com/repos/horba/pineapple/tags","blobs_url":"https://api.github.com/repos/horba/pineapple/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/horba/pineapple/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/horba/pineapple/git/refs{/sha}","trees_url":"https://api.github.com/repos/horba/pineapple/git/trees{/sha}","statuses_url":"https://api.github.com/repos/horba/pineapple/statuses/{sha}","languages_url":"https://api.github.com/repos/horba/pineapple/languages","stargazers_url":"https://api.github.com/repos/horba/pineapple/stargazers","contributors_url":"https://api.github.com/repos/horba/pineapple/contributors","subscribers_url":"https://api.github.com/repos/horba/pineapple/subscribers","subscription_url":"https://api.github.com/repos/horba/pineapple/subscription","commits_url":"https://api.github.com/repos/horba/pineapple/commits{/sha}","git_commits_url":"https://api.github.com/repos/horba/pineapple/git/commits{/sha}","comments_url":"https://api.github.com/repos/horba/pineapple/comments{/number}","issue_comment_url":"https://api.github.com/repos/horba/pineapple/issues/comments{/number}","contents_url":"https://api.github.com/repos/horba/pineapple/contents/{+path}","compare_url":"https://api.github.com/repos/horba/pineapple/compare/{base}...{head}","merges_url":"https://api.github.com/repos/horba/pineapple/merges","archive_url":"https://api.github.com/repos/horba/pineapple/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/horba/pineapple/downloads","issues_url":"https://api.github.com/repos/horba/pineapple/issues{/number}","pulls_url":"https://api.github.com/repos/horba/pineapple/pulls{/number}","milestones_url":"https://api.github.com/repos/horba/pineapple/milestones{/number}","notifications_url":"https://api.github.com/repos/horba/pineapple/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/horba/pineapple/labels{/name}","releases_url":"https://api.github.com/repos/horba/pineapple/releases{/id}","deployments_url":"https://api.github.com/repos/horba/pineapple/deployments","created_at":"2017-10-30T17:12:59Z","updated_at":"2017-11-04T14:02:12Z","pushed_at":"2018-02-03T20:51:32Z","git_url":"git://github.com/horba/pineapple.git","ssh_url":"git@github.com:horba/pineapple.git","clone_url":"https://github.com/horba/pineapple.git","svn_url":"https://github.com/horba/pineapple","homepage":null,"size":885,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"horba:develop","ref":"develop","sha":"f3acbe64097b7be6d2f988336a848edf9639637d","user":{"login":"horba","id":11043173,"avatar_url":"https://avatars0.githubusercontent.com/u/11043173?v=4","gravatar_id":"","url":"https://api.github.com/users/horba","html_url":"https://github.com/horba","followers_url":"https://api.github.com/users/horba/followers","following_url":"https://api.github.com/users/horba/following{/other_user}","gists_url":"https://api.github.com/users/horba/gists{/gist_id}","starred_url":"https://api.github.com/users/horba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horba/subscriptions","organizations_url":"https://api.github.com/users/horba/orgs","repos_url":"https://api.github.com/users/horba/repos","events_url":"https://api.github.com/users/horba/events{/privacy}","received_events_url":"https://api.github.com/users/horba/received_events","type":"User","site_admin":false},"repo":{"id":108883154,"name":"pineapple","full_name":"horba/pineapple","owner":{"login":"horba","id":11043173,"avatar_url":"https://avatars0.githubusercontent.com/u/11043173?v=4","gravatar_id":"","url":"https://api.github.com/users/horba","html_url":"https://github.com/horba","followers_url":"https://api.github.com/users/horba/followers","following_url":"https://api.github.com/users/horba/following{/other_user}","gists_url":"https://api.github.com/users/horba/gists{/gist_id}","starred_url":"https://api.github.com/users/horba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horba/subscriptions","organizations_url":"https://api.github.com/users/horba/orgs","repos_url":"https://api.github.com/users/horba/repos","events_url":"https://api.github.com/users/horba/events{/privacy}","received_events_url":"https://api.github.com/users/horba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/horba/pineapple","description":"Twitter replica project","fork":false,"url":"https://api.github.com/repos/horba/pineapple","forks_url":"https://api.github.com/repos/horba/pineapple/forks","keys_url":"https://api.github.com/repos/horba/pineapple/keys{/key_id}","collaborators_url":"https://api.github.com/repos/horba/pineapple/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/horba/pineapple/teams","hooks_url":"https://api.github.com/repos/horba/pineapple/hooks","issue_events_url":"https://api.github.com/repos/horba/pineapple/issues/events{/number}","events_url":"https://api.github.com/repos/horba/pineapple/events","assignees_url":"https://api.github.com/repos/horba/pineapple/assignees{/user}","branches_url":"https://api.github.com/repos/horba/pineapple/branches{/branch}","tags_url":"https://api.github.com/repos/horba/pineapple/tags","blobs_url":"https://api.github.com/repos/horba/pineapple/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/horba/pineapple/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/horba/pineapple/git/refs{/sha}","trees_url":"https://api.github.com/repos/horba/pineapple/git/trees{/sha}","statuses_url":"https://api.github.com/repos/horba/pineapple/statuses/{sha}","languages_url":"https://api.github.com/repos/horba/pineapple/languages","stargazers_url":"https://api.github.com/repos/horba/pineapple/stargazers","contributors_url":"https://api.github.com/repos/horba/pineapple/contributors","subscribers_url":"https://api.github.com/repos/horba/pineapple/subscribers","subscription_url":"https://api.github.com/repos/horba/pineapple/subscription","commits_url":"https://api.github.com/repos/horba/pineapple/commits{/sha}","git_commits_url":"https://api.github.com/repos/horba/pineapple/git/commits{/sha}","comments_url":"https://api.github.com/repos/horba/pineapple/comments{/number}","issue_comment_url":"https://api.github.com/repos/horba/pineapple/issues/comments{/number}","contents_url":"https://api.github.com/repos/horba/pineapple/contents/{+path}","compare_url":"https://api.github.com/repos/horba/pineapple/compare/{base}...{head}","merges_url":"https://api.github.com/repos/horba/pineapple/merges","archive_url":"https://api.github.com/repos/horba/pineapple/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/horba/pineapple/downloads","issues_url":"https://api.github.com/repos/horba/pineapple/issues{/number}","pulls_url":"https://api.github.com/repos/horba/pineapple/pulls{/number}","milestones_url":"https://api.github.com/repos/horba/pineapple/milestones{/number}","notifications_url":"https://api.github.com/repos/horba/pineapple/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/horba/pineapple/labels{/name}","releases_url":"https://api.github.com/repos/horba/pineapple/releases{/id}","deployments_url":"https://api.github.com/repos/horba/pineapple/deployments","created_at":"2017-10-30T17:12:59Z","updated_at":"2017-11-04T14:02:12Z","pushed_at":"2018-02-03T20:51:32Z","git_url":"git://github.com/horba/pineapple.git","ssh_url":"git@github.com:horba/pineapple.git","clone_url":"https://github.com/horba/pineapple.git","svn_url":"https://github.com/horba/pineapple","homepage":null,"size":885,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/horba/pineapple/pulls/49"},"html":{"href":"https://github.com/horba/pineapple/pull/49"},"issue":{"href":"https://api.github.com/repos/horba/pineapple/issues/49"},"comments":{"href":"https://api.github.com/repos/horba/pineapple/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/horba/pineapple/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/horba/pineapple/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/horba/pineapple/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/horba/pineapple/statuses/890c3d5200ccfad133cdc820cbce058d635d0f3a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Markiz9999"}}