Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Login issue with Chrome #35

Open
jdbence opened this issue May 26, 2016 · 0 comments
Open

bug: Login issue with Chrome #35

jdbence opened this issue May 26, 2016 · 0 comments

Comments

@jdbence
Copy link

jdbence commented May 26, 2016

In Chrome when incorrect creds are sent, the 401 response sometimes is caught by the catch method and sometimes by the error method. It works correctly in Edge and FireFox.

var data = {'email':'[email protected]', 'password':'fake'};
Stamplay.User.login(data).then(function(res){ 
  console.log('login Success', res); 
}, function(err) { 
  console.log('login Error', err); 
}).catch(function(res){ 
  console.log('catch', res); 
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant