{"action":"opened","issue":{"url":"https://api.github.com/repos/hoist/Hoist/issues/197","repository_url":"https://api.github.com/repos/hoist/Hoist","labels_url":"https://api.github.com/repos/hoist/Hoist/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/hoist/Hoist/issues/197/comments","events_url":"https://api.github.com/repos/hoist/Hoist/issues/197/events","html_url":"https://github.com/hoist/Hoist/issues/197","id":146777038,"number":197,"title":"login issue","user":{"login":"buildmaster","id":19946,"avatar_url":"https://avatars.githubusercontent.com/u/19946?v=3","gravatar_id":"","url":"https://api.github.com/users/buildmaster","html_url":"https://github.com/buildmaster","followers_url":"https://api.github.com/users/buildmaster/followers","following_url":"https://api.github.com/users/buildmaster/following{/other_user}","gists_url":"https://api.github.com/users/buildmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/buildmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buildmaster/subscriptions","organizations_url":"https://api.github.com/users/buildmaster/orgs","repos_url":"https://api.github.com/users/buildmaster/repos","events_url":"https://api.github.com/users/buildmaster/events{/privacy}","received_events_url":"https://api.github.com/users/buildmaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-08T00:11:52Z","updated_at":"2016-04-08T00:11:52Z","closed_at":null,"body":": {\"name\":\"portal.hoist.io\",\"hostname\":\"2837286b0db9\",\"pid\":51,\"cls\":\"SessionLogic\",\"level\":30,\"msg\":\"checking ip address\",\"time\":\"2016-04-08T00:10:09.003Z\",\"v\":0}\r\nApr 08 00:10:09 ip-172-16-2-96.hoist.internal docker[7741]: Mongoose: iplogs.count({ createdAt: { '$gt': new Date(\"Fri, 08 Apr 2016 00:08:09 GMT\") }, success: false, ip: '172.16.1.41' }) {}\r\nApr 08 00:10:09 ip-172-16-2-96.hoist.internal docker[7741]: {\"name\":\"portal.hoist.io\",\"hostname\":\"2837286b0db9\",\"pid\":51,\"cls\":\"SessionLogic\",\"level\":30,\"msg\":\"checking email and username are set\",\"time\":\"2016-04-08T00:10:09.024Z\",\"v\":0}\r\nApr 08 00:10:09 ip-172-16-2-96.hoist.internal docker[7741]: {\"name\":\"portal.hoist.io\",\"hostname\":\"2837286b0db9\",\"pid\":51,\"cls\":\"SessionLogic\",\"level\":30,\"msg\":\"finding user\",\"time\":\"2016-04-08T00:10:09.025Z\",\"v\":0}\r\nApr 08 00:10:09 ip-172-16-2-96.hoist.internal docker[7741]: Mongoose: hoistusers.findOne({ 'emailAddresses.address': 'rowno@webspirited.com' }) { readPreference: { _type: 'ReadPreference', mode: 'nearest', tags: undefined }, fields: undefined }\r\nApr 08 00:10:09 ip-172-16-2-96.hoist.internal docker[7741]: {\"name\":\"portal.hoist.io\",\"hostname\":\"2837286b0db9\",\"pid\":51,\"cls\":\"SessionLogic\",\"level\":30,\"msg\":\"checking user lock\",\"time\":\"2016-04-08T00:10:09.061Z\",\"v\":0}\r\nApr 08 00:10:09 ip-172-16-2-96.hoist.internal docker[7741]: Mongoose: loginlogs.count({ createdAt: { '$gt': new Date(\"Fri, 08 Apr 2016 00:08:09 GMT\") }, success: false, username: { '$in': [ 'rowno@webspirited.com' ] } }) {}\r\nApr 08 00:10:09 ip-172-16-2-96.hoist.internal docker[7741]: {\"name\":\"portal.hoist.io\",\"hostname\":\"2837286b0db9\",\"pid\":51,\"cls\":\"SessionLogic\",\"level\":30,\"msg\":\"checking password\",\"time\":\"2016-04-08T00:10:09.077Z\",\"v\":0}\r\nApr 08 00:10:09 ip-172-16-2-96.hoist.internal docker[7741]: Mongoose: sessions.find({ user: 'l67MQjf4gfoCDUhi4W_X' }) { sort: { updatedAt: -1 }, limit: 1, fields: { _id: -1, organisation: 1, application: 1 } }\r\nApr 08 00:10:09 ip-172-16-2-96.hoist.internal docker[7741]: {\"name\":\"portal.hoist.io\",\"hostname\":\"2837286b0db9\",\"pid\":51,\"cls\":\"SessionLogic\",\"level\":30,\"msg\":\"last session loaded\",\"time\":\"2016-04-08T00:10:09.771Z\",\"v\":0}\r\nApr 08 00:10:09 ip-172-16-2-96.hoist.internal docker[7741]: Mongoose: iplogs.insert({ createdAt: new Date(\"Fri, 08 Apr 2016 00:10:09 GMT\"), updatedAt: new Date(\"Fri, 08 Apr 2016 00:10:09 GMT\"), ip: '172.16.1.41', _id: ObjectId(\"5706f6e14932b9330051ad58\"), success: false, __v: 0 })\r\nApr 08 00:10:09 ip-172-16-2-96.hoist.internal docker[7741]: Mongoose: loginlogs.insert({ createdAt: new Date(\"Fri, 08 Apr 2016 00:10:09 GMT\"), updatedAt: new Date(\"Fri, 08 Apr 2016 00:10:09 GMT\"), username: 'rowno@webspirited.com', success: false, _id: ObjectId(\"5706f6e14932b9330051ad59\"), __v: 0 })\r\nApr 08 00:10:09 ip-172-16-2-96.hoist.internal docker[7741]: {\"name\":\"portal.hoist.io\",\"hostname\":\"2837286b0db9\",\"pid\":51,\"cls\":\"SessionController\",\"level\":50,\"err\":{\"message\":\"Cannot read property 'toJSON' of undefined\",\"name\":\"TypeError\",\"stack\":\"TypeError: Cannot read property 'toJSON' of undefined\\n    at /usr/src/app/lib/maps/app/src/server/logic/server/logic/session.js:120:10\\n    at newTickHandler (/usr/src/app/node_modules/mpromise/lib/promise.js:234:18)\\n    at nextTickCallbackWith0Args (node.js:415:9)\\n    at process._tickDomainCallback (node.js:385:13)\"},\"msg\":\"Cannot read property 'toJSON' of undefined\",\"time\":\"2016-04-08T00:10:09.859Z\",\"v\":0}"}}