{"action":"created","comment":{"url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/pulls/comments/60828463","id":60828463,"diff_hunk":"@@ -0,0 +1,55 @@\n+var _ = require('underscore');\n+var Q = require('q');\n+\n+var UserModel = require('../models/auth/user');\n+\n+var userController = {\n+    /**\n+     * Create new user\n+     *\n+     * @param {Object} data\n+     * @param {Object} data.username - email in fact","path":"controllers/user.js","position":11,"original_position":11,"commit_id":"124c42a422d80e6f98dc25763e55c11a6878ccbc","original_commit_id":"124c42a422d80e6f98dc25763e55c11a6878ccbc","user":{"login":"AndreySurzhan","id":7816369,"avatar_url":"https://avatars.githubusercontent.com/u/7816369?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreySurzhan","html_url":"https://github.com/AndreySurzhan","followers_url":"https://api.github.com/users/AndreySurzhan/followers","following_url":"https://api.github.com/users/AndreySurzhan/following{/other_user}","gists_url":"https://api.github.com/users/AndreySurzhan/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreySurzhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreySurzhan/subscriptions","organizations_url":"https://api.github.com/users/AndreySurzhan/orgs","repos_url":"https://api.github.com/users/AndreySurzhan/repos","events_url":"https://api.github.com/users/AndreySurzhan/events{/privacy}","received_events_url":"https://api.github.com/users/AndreySurzhan/received_events","type":"User","site_admin":false},"body":"string","created_at":"2016-04-23T13:27:59Z","updated_at":"2016-04-23T13:27:59Z","html_url":"https://github.com/wildeastengineer/MKeepAPI/pull/2#discussion_r60828463","pull_request_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/wildeastengineer/MKeepAPI/pulls/comments/60828463"},"html":{"href":"https://github.com/wildeastengineer/MKeepAPI/pull/2#discussion_r60828463"},"pull_request":{"href":"https://api.github.com/repos/wildeastengineer/MKeepAPI/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/pulls/2","id":66107714,"html_url":"https://github.com/wildeastengineer/MKeepAPI/pull/2","diff_url":"https://github.com/wildeastengineer/MKeepAPI/pull/2.diff","patch_url":"https://github.com/wildeastengineer/MKeepAPI/pull/2.patch","issue_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/issues/2","number":2,"state":"open","locked":false,"title":"[REVIEW] [develop] Trello-Wj6NIsYU. Авторизация по API","user":{"login":"wildeastengineer","id":15379954,"avatar_url":"https://avatars.githubusercontent.com/u/15379954?v=3","gravatar_id":"","url":"https://api.github.com/users/wildeastengineer","html_url":"https://github.com/wildeastengineer","followers_url":"https://api.github.com/users/wildeastengineer/followers","following_url":"https://api.github.com/users/wildeastengineer/following{/other_user}","gists_url":"https://api.github.com/users/wildeastengineer/gists{/gist_id}","starred_url":"https://api.github.com/users/wildeastengineer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildeastengineer/subscriptions","organizations_url":"https://api.github.com/users/wildeastengineer/orgs","repos_url":"https://api.github.com/users/wildeastengineer/repos","events_url":"https://api.github.com/users/wildeastengineer/events{/privacy}","received_events_url":"https://api.github.com/users/wildeastengineer/received_events","type":"User","site_admin":false},"body":"[Авторизация по API](https://trello.com/c/Wj6NIsYU)\r\n\r\n- [x] Авторизация\r\n- [x] Регистрация\r\n\r\n---\r\n\r\nРабота авторизации описана [здесь](https://github.com/wildeastengineer/MKeepAPI/wiki/%D0%90%D0%B2%D1%82%D0%BE%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F)","created_at":"2016-04-12T06:41:40Z","updated_at":"2016-04-23T13:27:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e171f27c24903e0c481aa0849630ea129e965b6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/pulls/2/commits","review_comments_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/pulls/2/comments","review_comment_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/issues/2/comments","statuses_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/statuses/124c42a422d80e6f98dc25763e55c11a6878ccbc","head":{"label":"wildeastengineer:oAuth","ref":"oAuth","sha":"124c42a422d80e6f98dc25763e55c11a6878ccbc","user":{"login":"wildeastengineer","id":15379954,"avatar_url":"https://avatars.githubusercontent.com/u/15379954?v=3","gravatar_id":"","url":"https://api.github.com/users/wildeastengineer","html_url":"https://github.com/wildeastengineer","followers_url":"https://api.github.com/users/wildeastengineer/followers","following_url":"https://api.github.com/users/wildeastengineer/following{/other_user}","gists_url":"https://api.github.com/users/wildeastengineer/gists{/gist_id}","starred_url":"https://api.github.com/users/wildeastengineer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildeastengineer/subscriptions","organizations_url":"https://api.github.com/users/wildeastengineer/orgs","repos_url":"https://api.github.com/users/wildeastengineer/repos","events_url":"https://api.github.com/users/wildeastengineer/events{/privacy}","received_events_url":"https://api.github.com/users/wildeastengineer/received_events","type":"User","site_admin":false},"repo":{"id":50774219,"name":"MKeepAPI","full_name":"wildeastengineer/MKeepAPI","owner":{"login":"wildeastengineer","id":15379954,"avatar_url":"https://avatars.githubusercontent.com/u/15379954?v=3","gravatar_id":"","url":"https://api.github.com/users/wildeastengineer","html_url":"https://github.com/wildeastengineer","followers_url":"https://api.github.com/users/wildeastengineer/followers","following_url":"https://api.github.com/users/wildeastengineer/following{/other_user}","gists_url":"https://api.github.com/users/wildeastengineer/gists{/gist_id}","starred_url":"https://api.github.com/users/wildeastengineer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildeastengineer/subscriptions","organizations_url":"https://api.github.com/users/wildeastengineer/orgs","repos_url":"https://api.github.com/users/wildeastengineer/repos","events_url":"https://api.github.com/users/wildeastengineer/events{/privacy}","received_events_url":"https://api.github.com/users/wildeastengineer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wildeastengineer/MKeepAPI","description":"API","fork":false,"url":"https://api.github.com/repos/wildeastengineer/MKeepAPI","forks_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/forks","keys_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/teams","hooks_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/hooks","issue_events_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/issues/events{/number}","events_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/events","assignees_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/assignees{/user}","branches_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/branches{/branch}","tags_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/tags","blobs_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/git/refs{/sha}","trees_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/statuses/{sha}","languages_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/languages","stargazers_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/stargazers","contributors_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/contributors","subscribers_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/subscribers","subscription_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/subscription","commits_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/commits{/sha}","git_commits_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/git/commits{/sha}","comments_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/comments{/number}","issue_comment_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/issues/comments{/number}","contents_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/contents/{+path}","compare_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/merges","archive_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/downloads","issues_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/issues{/number}","pulls_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/pulls{/number}","milestones_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/milestones{/number}","notifications_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/labels{/name}","releases_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/releases{/id}","deployments_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/deployments","created_at":"2016-01-31T12:51:36Z","updated_at":"2016-04-07T05:55:04Z","pushed_at":"2016-04-23T13:16:53Z","git_url":"git://github.com/wildeastengineer/MKeepAPI.git","ssh_url":"git@github.com:wildeastengineer/MKeepAPI.git","clone_url":"https://github.com/wildeastengineer/MKeepAPI.git","svn_url":"https://github.com/wildeastengineer/MKeepAPI","homepage":null,"size":24,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"develop"}},"base":{"label":"wildeastengineer:develop","ref":"develop","sha":"d06e974cffb0c9ece5bd7e08301f5cde61b685f4","user":{"login":"wildeastengineer","id":15379954,"avatar_url":"https://avatars.githubusercontent.com/u/15379954?v=3","gravatar_id":"","url":"https://api.github.com/users/wildeastengineer","html_url":"https://github.com/wildeastengineer","followers_url":"https://api.github.com/users/wildeastengineer/followers","following_url":"https://api.github.com/users/wildeastengineer/following{/other_user}","gists_url":"https://api.github.com/users/wildeastengineer/gists{/gist_id}","starred_url":"https://api.github.com/users/wildeastengineer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildeastengineer/subscriptions","organizations_url":"https://api.github.com/users/wildeastengineer/orgs","repos_url":"https://api.github.com/users/wildeastengineer/repos","events_url":"https://api.github.com/users/wildeastengineer/events{/privacy}","received_events_url":"https://api.github.com/users/wildeastengineer/received_events","type":"User","site_admin":false},"repo":{"id":50774219,"name":"MKeepAPI","full_name":"wildeastengineer/MKeepAPI","owner":{"login":"wildeastengineer","id":15379954,"avatar_url":"https://avatars.githubusercontent.com/u/15379954?v=3","gravatar_id":"","url":"https://api.github.com/users/wildeastengineer","html_url":"https://github.com/wildeastengineer","followers_url":"https://api.github.com/users/wildeastengineer/followers","following_url":"https://api.github.com/users/wildeastengineer/following{/other_user}","gists_url":"https://api.github.com/users/wildeastengineer/gists{/gist_id}","starred_url":"https://api.github.com/users/wildeastengineer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildeastengineer/subscriptions","organizations_url":"https://api.github.com/users/wildeastengineer/orgs","repos_url":"https://api.github.com/users/wildeastengineer/repos","events_url":"https://api.github.com/users/wildeastengineer/events{/privacy}","received_events_url":"https://api.github.com/users/wildeastengineer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wildeastengineer/MKeepAPI","description":"API","fork":false,"url":"https://api.github.com/repos/wildeastengineer/MKeepAPI","forks_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/forks","keys_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/teams","hooks_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/hooks","issue_events_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/issues/events{/number}","events_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/events","assignees_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/assignees{/user}","branches_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/branches{/branch}","tags_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/tags","blobs_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/git/refs{/sha}","trees_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/statuses/{sha}","languages_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/languages","stargazers_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/stargazers","contributors_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/contributors","subscribers_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/subscribers","subscription_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/subscription","commits_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/commits{/sha}","git_commits_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/git/commits{/sha}","comments_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/comments{/number}","issue_comment_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/issues/comments{/number}","contents_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/contents/{+path}","compare_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/merges","archive_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/downloads","issues_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/issues{/number}","pulls_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/pulls{/number}","milestones_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/milestones{/number}","notifications_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/labels{/name}","releases_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/releases{/id}","deployments_url":"https://api.github.com/repos/wildeastengineer/MKeepAPI/deployments","created_at":"2016-01-31T12:51:36Z","updated_at":"2016-04-07T05:55:04Z","pushed_at":"2016-04-23T13:16:53Z","git_url":"git://github.com/wildeastengineer/MKeepAPI.git","ssh_url":"git@github.com:wildeastengineer/MKeepAPI.git","clone_url":"https://github.com/wildeastengineer/MKeepAPI.git","svn_url":"https://github.com/wildeastengineer/MKeepAPI","homepage":null,"size":24,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/wildeastengineer/MKeepAPI/pulls/2"},"html":{"href":"https://github.com/wildeastengineer/MKeepAPI/pull/2"},"issue":{"href":"https://api.github.com/repos/wildeastengineer/MKeepAPI/issues/2"},"comments":{"href":"https://api.github.com/repos/wildeastengineer/MKeepAPI/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/wildeastengineer/MKeepAPI/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/wildeastengineer/MKeepAPI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wildeastengineer/MKeepAPI/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/wildeastengineer/MKeepAPI/statuses/124c42a422d80e6f98dc25763e55c11a6878ccbc"}}}}