{"action":"created","issue":{"url":"https://api.github.com/repos/kahmali/meteor-restivus/issues/2","labels_url":"https://api.github.com/repos/kahmali/meteor-restivus/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/kahmali/meteor-restivus/issues/2/comments","events_url":"https://api.github.com/repos/kahmali/meteor-restivus/issues/2/events","html_url":"https://github.com/kahmali/meteor-restivus/issues/2","id":56111535,"number":2,"title":"/api/login chokes on onLoggedIn call","user":{"login":"hujhax","id":1321084,"avatar_url":"https://avatars.githubusercontent.com/u/1321084?v=3","gravatar_id":"","url":"https://api.github.com/users/hujhax","html_url":"https://github.com/hujhax","followers_url":"https://api.github.com/users/hujhax/followers","following_url":"https://api.github.com/users/hujhax/following{/other_user}","gists_url":"https://api.github.com/users/hujhax/gists{/gist_id}","starred_url":"https://api.github.com/users/hujhax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hujhax/subscriptions","organizations_url":"https://api.github.com/users/hujhax/orgs","repos_url":"https://api.github.com/users/hujhax/repos","events_url":"https://api.github.com/users/hujhax/events{/privacy}","received_events_url":"https://api.github.com/users/hujhax/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-31T04:07:07Z","updated_at":"2015-01-31T05:59:30Z","closed_at":"2015-01-31T05:59:30Z","body":"I have a RESTful API set up with useAuth turned on.  Whenever I try to access /api/login with a valid username and password, I get this error:\r\n\r\n\t curl --data \"password=123123&user=peter\" http://localhost:3000/api/login/\r\n\t TypeError: Cannot read property 'config' of undefined\r\n\t\tat [object Object].Restivus.add.post (packages/nimble:restivus/lib/restivus.coffee:93:18)\r\n\t\tat [object Object].Route._callEndpoint (packages/nimble:restivus/lib/route.coffee:121:25)\r\n\t\tat [object Object].Router.route.action (packages/nimble:restivus/lib/route.coffee:40:40)\r\n\t\tat boundNext (packages/iron:middleware-stack/lib/middleware_stack.js:251:1)\r\n\t\tat runWithEnvironment (packages/meteor/dynamics_nodejs.js:108:1)\r\n\r\nThat spot corresponds to this call in restivus.coffe:\r\n\t @Restivus.config.onLoggedIn.call this\r\n\r\nSo presumably something's gone weird with \"this\" such that this.Restivus is undefined.  Maybe an easy fix?"},"comment":{"url":"https://api.github.com/repos/kahmali/meteor-restivus/issues/comments/72306222","html_url":"https://github.com/kahmali/meteor-restivus/issues/2#issuecomment-72306222","issue_url":"https://api.github.com/repos/kahmali/meteor-restivus/issues/2","id":72306222,"user":{"login":"kahmali","id":935297,"avatar_url":"https://avatars.githubusercontent.com/u/935297?v=3","gravatar_id":"","url":"https://api.github.com/users/kahmali","html_url":"https://github.com/kahmali","followers_url":"https://api.github.com/users/kahmali/followers","following_url":"https://api.github.com/users/kahmali/following{/other_user}","gists_url":"https://api.github.com/users/kahmali/gists{/gist_id}","starred_url":"https://api.github.com/users/kahmali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kahmali/subscriptions","organizations_url":"https://api.github.com/users/kahmali/orgs","repos_url":"https://api.github.com/users/kahmali/repos","events_url":"https://api.github.com/users/kahmali/events{/privacy}","received_events_url":"https://api.github.com/users/kahmali/received_events","type":"User","site_admin":false},"created_at":"2015-01-31T05:59:30Z","updated_at":"2015-01-31T05:59:30Z","body":"Sorry for giving you the wrong revert command! Geez. I'm a mess. I just published an update with the fix. Please let me know if you have any issues with the latest version. Thanks so much for reporting this! "}}