{"action":"created","issue":{"url":"https://api.github.com/repos/shri-2015-org/shriek/issues/54","labels_url":"https://api.github.com/repos/shri-2015-org/shriek/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/shri-2015-org/shriek/issues/54/comments","events_url":"https://api.github.com/repos/shri-2015-org/shriek/issues/54/events","html_url":"https://github.com/shri-2015-org/shriek/pull/54","id":108675009,"number":54,"title":"Feature/login twitter","user":{"login":"TehZarathustra","id":10907309,"avatar_url":"https://avatars.githubusercontent.com/u/10907309?v=3","gravatar_id":"","url":"https://api.github.com/users/TehZarathustra","html_url":"https://github.com/TehZarathustra","followers_url":"https://api.github.com/users/TehZarathustra/followers","following_url":"https://api.github.com/users/TehZarathustra/following{/other_user}","gists_url":"https://api.github.com/users/TehZarathustra/gists{/gist_id}","starred_url":"https://api.github.com/users/TehZarathustra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TehZarathustra/subscriptions","organizations_url":"https://api.github.com/users/TehZarathustra/orgs","repos_url":"https://api.github.com/users/TehZarathustra/repos","events_url":"https://api.github.com/users/TehZarathustra/events{/privacy}","received_events_url":"https://api.github.com/users/TehZarathustra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shri-2015-org/shriek/labels/Need%20review","name":"Need review","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-28T14:55:59Z","updated_at":"2015-09-28T18:35:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/shri-2015-org/shriek/pulls/54","html_url":"https://github.com/shri-2015-org/shriek/pull/54","diff_url":"https://github.com/shri-2015-org/shriek/pull/54.diff","patch_url":"https://github.com/shri-2015-org/shriek/pull/54.patch"},"body":"Доделал авторизацию через сторонние сервисы (twitter, google, github)"},"comment":{"url":"https://api.github.com/repos/shri-2015-org/shriek/issues/comments/143837003","html_url":"https://github.com/shri-2015-org/shriek/pull/54#issuecomment-143837003","issue_url":"https://api.github.com/repos/shri-2015-org/shriek/issues/54","id":143837003,"user":{"login":"sigorilla","id":1208639,"avatar_url":"https://avatars.githubusercontent.com/u/1208639?v=3","gravatar_id":"","url":"https://api.github.com/users/sigorilla","html_url":"https://github.com/sigorilla","followers_url":"https://api.github.com/users/sigorilla/followers","following_url":"https://api.github.com/users/sigorilla/following{/other_user}","gists_url":"https://api.github.com/users/sigorilla/gists{/gist_id}","starred_url":"https://api.github.com/users/sigorilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigorilla/subscriptions","organizations_url":"https://api.github.com/users/sigorilla/orgs","repos_url":"https://api.github.com/users/sigorilla/repos","events_url":"https://api.github.com/users/sigorilla/events{/privacy}","received_events_url":"https://api.github.com/users/sigorilla/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T18:35:49Z","updated_at":"2015-09-28T18:35:49Z","body":"# Bug\r\n```\r\nMongoError: E11000 duplicate key error index: shriek.users.$username_1 dup key: { : \"sigorilla\" }\r\n   at Function.MongoError.create (O:\\projects\\shriek\\node_modules\\mongoose\\node_modules\\mongodb\\node_modules\\mongodb-core\\lib\\error.js:31:11)\r\n   at toError (O:\\projects\\shriek\\node_modules\\mongoose\\node_modules\\mongodb\\lib\\utils.js:113:22)\r\n   at O:\\projects\\shriek\\node_modules\\mongoose\\node_modules\\mongodb\\lib\\collection.js:547:23\r\n   at O:\\projects\\shriek\\node_modules\\mongoose\\node_modules\\mongodb\\lib\\bulk\\unordered.js:457:9\r\n   at resultHandler (O:\\projects\\shriek\\node_modules\\mongoose\\node_modules\\mongodb\\lib\\bulk\\unordered.js:409:5)\r\n   at O:\\projects\\shriek\\node_modules\\mongoose\\node_modules\\mongodb\\node_modules\\mongodb-core\\lib\\topologies\\server.js:756:13\r\n   at Callbacks.emit (O:\\projects\\shriek\\node_modules\\mongoose\\node_modules\\mongodb\\node_modules\\mongodb-core\\lib\\topologies\\server.js:95:3)\r\n   at null.messageHandler (O:\\projects\\shriek\\node_modules\\mongoose\\node_modules\\mongodb\\node_modules\\mongodb-core\\lib\\topologies\\server.js:243:23)\r\n   at Socket.<anonymous> (O:\\projects\\shriek\\node_modules\\mongoose\\node_modules\\mongodb\\node_modules\\mongodb-core\\lib\\connection\\connection.js:262:22)\r\n   at emitOne (events.js:77:13)\r\n   at Socket.emit (events.js:169:7)\r\n   at readableAddChunk (_stream_readable.js:146:16)\r\n   at Socket.Readable.push (_stream_readable.js:110:10)\r\n   at TCP.onread (net.js:523:20)\r\n```\r\n\r\nСобственно не дает авторизоваться, если ник на сторонннем сервисе совпадает с уже существующим пользователем. Надо сделать обработку этого."}}