{"action":"created","issue":{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/974","repository_url":"https://api.github.com/repos/simplabs/ember-simple-auth","labels_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/974/labels{/name}","comments_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/974/comments","events_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/974/events","html_url":"https://github.com/simplabs/ember-simple-auth/issues/974","id":154209715,"number":974,"title":"If you fail initial login and then try to login again the transitionTo does not run","user":{"login":"devotox","id":2064846,"avatar_url":"https://avatars.githubusercontent.com/u/2064846?v=3","gravatar_id":"","url":"https://api.github.com/users/devotox","html_url":"https://github.com/devotox","followers_url":"https://api.github.com/users/devotox/followers","following_url":"https://api.github.com/users/devotox/following{/other_user}","gists_url":"https://api.github.com/users/devotox/gists{/gist_id}","starred_url":"https://api.github.com/users/devotox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devotox/subscriptions","organizations_url":"https://api.github.com/users/devotox/orgs","repos_url":"https://api.github.com/users/devotox/repos","events_url":"https://api.github.com/users/devotox/events{/privacy}","received_events_url":"https://api.github.com/users/devotox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-11T10:24:47Z","updated_at":"2016-05-15T23:30:19Z","closed_at":null,"body":"```\r\n'ember-simple-auth': {\r\n\t\t\tstore: 'simple-auth-session-store:local-storage',\r\n\t\t\tauthenticator: 'authenticator:doctify-auth',\r\n\t\t\tauthorizer: 'authorizer:doctify-auth',\r\n\r\n\t\t\tauthenticationRoute: 'login',\r\n\t\t\trouteAfterAuthentication: 'index',\r\n\t\t\trouteIfAlreadyAuthenticated: 'index',\r\n\r\n\t\t\tsessionPropertyName: 'session',\r\n\t\t\tsession: 'simple-auth-session:main',\r\n\t\t\tlocalStorageKey: 'ember_simple_auth:session',\r\n\t\t\tcrossOriginWhitelist: [],\r\n\t\t\tapplicationRootUrl: null\r\n\t\t},\r\n```\r\n\r\n```\r\nauthenticate: function(data, callback) {\r\n\t\treturn new Promise((resolve, reject) => {\r\n\t\t\tEmber.$.post('/api/auth/login', data)\r\n\t\t\t.then( user => {\r\n\t\t\t\tLocalForage.setItem('user', user).then( user => {\r\n\t\t\t\t\tPromise.resolve(callback && callback(user))\r\n\t\t\t\t\t.then(() => { resolve({ token: user.auth_token }); });\r\n\t\t\t\t});\r\n\t\t\t}).catch( error => reject(new Error(error.responseText)));\r\n\t\t});\r\n\t},\r\n```\r\n\r\nWhen i initially login if i pass authentication first time everything works as should but if i fail it then it does not "},"comment":{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/comments/219320414","html_url":"https://github.com/simplabs/ember-simple-auth/issues/974#issuecomment-219320414","issue_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/974","id":219320414,"user":{"login":"devotox","id":2064846,"avatar_url":"https://avatars.githubusercontent.com/u/2064846?v=3","gravatar_id":"","url":"https://api.github.com/users/devotox","html_url":"https://github.com/devotox","followers_url":"https://api.github.com/users/devotox/followers","following_url":"https://api.github.com/users/devotox/following{/other_user}","gists_url":"https://api.github.com/users/devotox/gists{/gist_id}","starred_url":"https://api.github.com/users/devotox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devotox/subscriptions","organizations_url":"https://api.github.com/users/devotox/orgs","repos_url":"https://api.github.com/users/devotox/repos","events_url":"https://api.github.com/users/devotox/events{/privacy}","received_events_url":"https://api.github.com/users/devotox/received_events","type":"User","site_admin":false},"created_at":"2016-05-15T23:30:19Z","updated_at":"2016-05-15T23:30:19Z","body":"have you been able to reproduce or do you need a test case more than what i have already provided?"}}