Closed villelahdenvuo closed 11 years ago
Hello Please find in angular-http-auth.js the string: authServiceProvider.pushToBuffer(response.config, deferred); an replase it : if (response.config.url != 'api/login') authServiceProvider.pushToBuffer(response.config, deferred); where 'api/login' is the url of the auth service
The problem was discussed also in other issues. I think I will add an option for authentication provider to be aware of URLs which it should ignore. Will reference and close all the issues once it is ready.
From what I gather:
So a simple fix would change failed login from 401 to something else, but that does seem like the best options for incorrect credentials. Any ideas how to mitigate this behaviour gracefully or just change error code for login requests?