{"action":"closed","issue":{"url":"https://api.github.com/repos/cloudspace/angular_devise/issues/59","labels_url":"https://api.github.com/repos/cloudspace/angular_devise/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/cloudspace/angular_devise/issues/59/comments","events_url":"https://api.github.com/repos/cloudspace/angular_devise/issues/59/events","html_url":"https://github.com/cloudspace/angular_devise/issues/59","id":81483235,"number":59,"title":"Auth.login can't return credential errors when global interceptAuth is enabled","user":{"login":"AmirKarimi","id":2813838,"avatar_url":"https://avatars.githubusercontent.com/u/2813838?v=3","gravatar_id":"","url":"https://api.github.com/users/AmirKarimi","html_url":"https://github.com/AmirKarimi","followers_url":"https://api.github.com/users/AmirKarimi/followers","following_url":"https://api.github.com/users/AmirKarimi/following{/other_user}","gists_url":"https://api.github.com/users/AmirKarimi/gists{/gist_id}","starred_url":"https://api.github.com/users/AmirKarimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmirKarimi/subscriptions","organizations_url":"https://api.github.com/users/AmirKarimi/orgs","repos_url":"https://api.github.com/users/AmirKarimi/repos","events_url":"https://api.github.com/users/AmirKarimi/events{/privacy}","received_events_url":"https://api.github.com/users/AmirKarimi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-27T15:01:35Z","updated_at":"2015-05-27T15:06:48Z","closed_at":"2015-05-27T15:06:48Z","body":"Devise returns 401 status for credentials errors (Ex. wrong password). I enabled interceptAuth globally which intercepts Auth.login calls as well that prevent my code to access the error result.\r\n\r\nI think we should pass `interceptAuth=false` option to $http in Auth.login method.\r\n\r\n"}}