Skip to content

Commit

Permalink
preventing override from causing loop when incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Raynor committed May 17, 2014
1 parent df9addd commit f89a632
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ var auth = {
if (tries > 0) {
if (tries !== this.maxRetries) {
console.log('Email or password incorrect, please try again');
delete prompt.override.email;
delete prompt.override.password;
}
this._loginRequest(function(err, email, token) {
if (err) {
Expand Down

0 comments on commit f89a632

Please sign in to comment.